Skip to content

Draft: Persistent fuzzing example#87

Draft
Teufelchen1 wants to merge 1 commit into
bergzand:masterfrom
Teufelchen1:fuzz/persistend
Draft

Draft: Persistent fuzzing example#87
Teufelchen1 wants to merge 1 commit into
bergzand:masterfrom
Teufelchen1:fuzz/persistend

Conversation

@Teufelchen1

@Teufelchen1 Teufelchen1 commented Nov 27, 2023

Copy link
Copy Markdown

Hi 🧇

This shows a low effort, cheap & dirty fuzzing harness for AFL++ in persistent mode.
It is based on the pretty-printer example. I removed the prints for speed-up. Additionally guards/limits were necessary to prevent hangs / stack overflows due to recursion.

Interesting settings to play with:

  • Instead / inadditon of ASAN, try MSAN or UBSAN
  • Instead of 1024 byte input limit, try more (needs beefy cpu / configuration to prevent AFL from collecting hangs)
  • Change the max-depth limits of _parse_cbor and _parse_map

to compile:

cd tests/fuzz
AFL_USE_ASAN=1 afl-clang-fast main.c ../../src/*.c -I ../../include/

to fuzz"

afl-fuzz -i inputs/ -o findings/ -- ./a.out

(this draft is a result of my procrastination - I have no intentions of putting it in shape to make it merge'able)

@Teufelchen1 Teufelchen1 changed the title Draft: Persistend fuzzing example Draft: Persistent fuzzing example Nov 27, 2023
@mguetschow mguetschow marked this pull request as draft November 14, 2025 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant