Michal Zalewski <
lca...@gmail.com> wrote:
>> I know the tool it self syntax I was referring to how to run it as a part of afl
>
> Basically, please don't :-)
I disagree. I found bugs thanks to running tests cases from the corpus
created by afl-fuzz with valgrind. I generally fuzz with asan, then when
a corpus is created (files in the queue/ directory), I process it with valgrind.
Valgrind may be slow, but it finds conditions that depend on uninitialized
memory, which are not found by asan. It's a frequent bug too. msan would
find such errors, but msan is difficult to use in practise, as all
libraries needs
to be compiled with msan. Valgrind is simpler.
You can use the "timeout" shell command to prevent valgrind from
hanging for a long time in case it enters a endless loop.
I don't recall the exact command I used, but something like this
should work:
$ find queue/ | xargs -I@@ timeout 10 valgrind your_command @@
Regards
Dominique