added fuzzer and fixed a couple of bugs found by it

This commit is contained in:
cozis
2022-04-25 00:56:35 +02:00
parent f89d0ce6d2
commit 131fc7f009
5 changed files with 50 additions and 2 deletions
Executable
+4
View File
@@ -0,0 +1,4 @@
afl-clang-fast fuzzer.c xjson.c -o fuzzer
export AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1
export AFL_SKIP_CPUFREQ=1
afl-fuzz -i samples/ -o out -m none -d -- ./fuzzer