diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-02-24 10:57:58 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-02-24 10:57:58 -0500 |
commit | 4d3310932a86aae731688ac30568f7cfb301dc35 (patch) | |
tree | 35836fc8dce506d015ce6f7adece90c551b81e6c /doc/HACKING | |
parent | 823fb68a14b551fc1f40e904428b3e31732441c5 (diff) | |
download | tor-4d3310932a86aae731688ac30568f7cfb301dc35.tar.gz tor-4d3310932a86aae731688ac30568f7cfb301dc35.zip |
Small fixes to fuzzing documentation.
Diffstat (limited to 'doc/HACKING')
-rw-r--r-- | doc/HACKING/Fuzzing.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/HACKING/Fuzzing.md b/doc/HACKING/Fuzzing.md index 16b0b6b000..2039d6a4c0 100644 --- a/doc/HACKING/Fuzzing.md +++ b/doc/HACKING/Fuzzing.md @@ -64,14 +64,14 @@ To Build: make cd ../tor PATH=$PATH:../afl/ CC="../afl/afl-gcc" ./configure --enable-expensive-hardening - AFL_HARDEN=1 make clean fuzz + AFL_HARDEN=1 make clean fuzzers To Find The ASAN Memory Limit: (64-bit only) -On 64-bit platforms, afl needs to know how much memory ASAN uses. -Or, you can configure tor without --enable-expensive-hardening, then use - make fuzz -to run the generated test cases through an ASAN-enabled fuzz-http. +On 64-bit platforms, afl needs to know how much memory ASAN uses, +because ASAN tends to allocate a ridiculous amount of virtual memory, +and then not actually use it. + Read afl/docs/notes_for_asan.txt for more details. Download recidivm from http://jwilk.net/software/recidivm @@ -80,7 +80,7 @@ Read afl/docs/notes_for_asan.txt for more details. tar xvzf recidivm*.tar.gz cd recidivm* make - /path/to/recidivm -v src/test/fuzz_dir + /path/to/recidivm -v src/test/fuzz/fuzz-http Use the final "ok" figure as the input to -m when calling afl-fuzz (Normally, recidivm would output a figure automatically, but in some cases, the fuzzing harness will hang when the memory limit is too small.) |