I would suggest also adding a slightly more complicated (but still
short) file, maybe add the library.json file that is part of jsmn to
your input directory.
> I have compiled a library and source code with afl-gcc.
My tip for JSMN is to use ASAN as well. It will find some bugs that
don't crash the program outright. For example:
echo '{[]}' | ./jsondump # doesn't give any errors, but
echo '{[]}' | valgrind ./jsondump # gives "Invalid read" error
and
echo '{{x"},:0,0}' | ./jsondump # doesn't give any errors, but
echo '{{x"},:0,0}' | valgrind ./jsondump # gives two "Conditional jump
or move" errors
Vegard