This project is for BUAA CST SS lab4.
tool | version |
---|---|
Linux | 22.04.1-Ubuntu x86_64 GNU/Linux (ensure Unix-like!) |
Clang/Clang++ | Ubuntu clang version 12.0.1-19ubuntu3 (not 14!) |
llvm-config | 12.0.1 (not 14.0.0!) |
make | GNU Make 4.3 x86_64 |
cmake | cmake version 3.22.1 (ensure >= 3.10) |
-
Run:
$ ./run.sh
-
Then:
$ bin/fuzz_main // default using example/test.cpp for demo.
-
For more clarity:
$ bin/fuzz_main | grep Parent $ bin/fuzz_main | grep Child $ cat /tmp/.fuzzlab/logs/test.cpp.elf.log | grep testing $ cat /tmp/.fuzzlab/logs/test.cpp.elf.log | grep round ...
-
For more types of bugs (null-deref, doublefree, divby0, uaf, outofboundary):
$ ./run.sh 1-nullptr.cpp // for example, nullptr dereference. $ bin/fuzz_main 1-nullptr.cpp.elf $ cat /tmp/.fuzzlab/logs/1-nullptr.cpp.elf.log $ cat /tmp/.fuzzlab/logs/1-nullptr.cpp.elf.log | grep testing $ cat /tmp/.fuzzlab/logs/1-nullptr.cpp.elf.log | grep round
See ./src/README.md
.