| 1 |
* American fuzzy lop with ASAN (AddressSanitizer) |
| 2 |
|
| 3 |
http://lcamtuf.coredump.cx/afl/ |
| 4 |
|
| 5 |
Assuming we are in the top directory: |
| 6 |
|
| 7 |
% cd fuzz |
| 8 |
% wget http://lcamtuf.coredump.cx/afl/releases/afl-latest.tgz |
| 9 |
% tar xvf afl-latest.tgz |
| 10 |
% ln -s afl-[0-9]* afl-latest |
| 11 |
% AFL_USE_ASAN=1 make |
| 12 |
% cd ../.. |
| 13 |
% make clean |
| 14 |
% make CC=fuzz/afl-latest/afl-clang CFLAGS="-O -g -fsanitize=address -fno-omit-frame-pointer" |
| 15 |
% AFL_USE_ASAN=1 AFL_SKIP_CPUFREQ=1 fuzz/afl-latest/afl-fuzz -m none -i fuzz/seed -o fuzz/results ./pgpdump |
| 16 |
% ./pgpdump fuzz/results/crashes/id:000000* |
| 17 |
|
| 18 |
|
| 19 |
* ASAN (AddressSanitizer) only |
| 20 |
|
| 21 |
% make clean |
| 22 |
% make CC=clang CFLAGS="-O -g -fsanitize=address -fno-omit-frame-pointer" |
| 23 |
% ./pgpdump fuzz/results/crashes/id:000000* |