]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/fuzzing/README.md: don't use waf directly
authorStefan Metzmacher <metze@samba.org>
Mon, 28 Mar 2022 10:49:24 +0000 (12:49 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 29 Mar 2022 22:32:32 +0000 (22:32 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/fuzzing/README.md

index 33d33b923905f49b51d08ec3040ce7e40435b9df..d3e34bd79a36cf01efb4b29629e48ca35d0859e6 100644 (file)
@@ -17,9 +17,9 @@ Example command line to build binaries for use with
 [honggfuzz](https://github.com/google/honggfuzz/):
 
 ```sh
-buildtools/bin/waf -C --without-gettext --enable-debug --enable-developer \
+./configure -C --without-gettext --enable-debug --enable-developer \
        --address-sanitizer --enable-libfuzzer --abi-check-disable \
-       CC=.../honggfuzz/hfuzz_cc/hfuzz-clang configure \
+       CC=.../honggfuzz/hfuzz_cc/hfuzz-clang \
        LINK_CC=.../honggfuzz/hfuzz_cc/hfuzz-clang
 ```
 
@@ -30,7 +30,7 @@ Example for fuzzing `tiniparser` using `honggfuzz` (see `--help` for more
 options):
 
 ```sh
-buildtools/bin/waf --targets=fuzz_tiniparser build && \
+make bin/fuzz_tiniparser && \
 .../honggfuzz/honggfuzz --sanitizers --timeout 3 --max_file_size 256 \
   --rlimit_rss 100 -f .../tiniparser-corpus -- bin/fuzz_tiniparser
 ```
@@ -43,9 +43,9 @@ Example command line to build binaries for use with
 [afl](http://lcamtuf.coredump.cx/afl/)
 
 ```sh
-buildtools/bin/waf -C --without-gettext --enable-debug --enable-developer \
+./configure -C --without-gettext --enable-debug --enable-developer \
        --enable-afl-fuzzer --abi-check-disable \
-       CC=afl-gcc configure
+       CC=afl-gcc
 ```
 
 ## Fuzzing tiniparser
@@ -54,7 +54,7 @@ Example for fuzzing `tiniparser` using `afl-fuzz` (see `--help` for more
 options):
 
 ```sh
-buildtools/bin/waf --targets=fuzz_tiniparser build && \
+make bin/fuzz_tiniparser build && \
 afl-fuzz -m 200 -i inputdir -o outputdir -- bin/fuzz_tiniparser
 ```