On Tue, Jul 18, 2017 at 05:30:47PM +0200, Jakub Wilk wrote:
> I had a test case that triggered double-free in my target program. I minimized
> it using afl-tmin, and the resulting file still crashes the target program, but
> it's an unexciting null pointer dereference... :-\
FYI, I wrote a general minimizer, named tmin.py, which help such case.
It works like afl-tmin, but it reduces input by conditions instead of
coverage.
For your case, to minizie input while makes sure the program is still
killed by SIGABRT,
tmin.py -i
file.in -o file.out --signal 6 -- /path/to/program @@
If you want to match certain assert(), you can match the message as
well,
tmin.py -i
file.in -o file.out --signal 6 --stderr 'message' -- /path/to/program @@
See
https://github.com/kcwu/afl-kit#tminpy for more information.
Regards,
kcwu