fuzz: update README.afl example
authorWei Liu <wei.liu2@citrix.com>
Wed, 25 Jan 2017 15:40:44 +0000 (15:40 +0000)
committerWei Liu <wei.liu2@citrix.com>
Mon, 6 Feb 2017 10:15:49 +0000 (10:15 +0000)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
tools/fuzz/README.afl

index 431b4a8cbfde406c00db1e5c49a359f9d49d56da..68e0fa396ffe938aaec4ea4e9502a26344862e00 100644 (file)
@@ -20,9 +20,10 @@ Use the x86 instruction emulator fuzzer as an example.
    $ make distclean
    $ make CC=$AFLPATH/afl-gcc afl # produces afl-x86-insn-emulator-fuzzer
 
-3. provide initial test case:
+3. provide initial test case (fuzzer dependent, see afl-*.c):
    $ mkdir testcase_dir
-   $ echo -n -e '\xc3' > testcase_dir/ret.bin
+   $ dd if=/dev/urandom of=testcase_dir/rand.bin \
+       bs=`./afl-x86-insn-emulator-fuzzer --min-input-size` count=1
 
 4. run the fuzzer with AFL:
    $ $AFLPATH/afl-fuzz -m none -t 1000 -i testcase_dir -o findings_dir -- \