test/fuzz: add some applications, add an experimental multi-packet mode

The experimental multi-packet mode splits input bytes depending on a length
decoded from the first 2 bytes and does that until the end of input.
To use this mode, compile with "make D=-DLWIP_FUZZ_MULTI_PACKET"

Signed-off-by: goldsimon <goldsimon@gmx.de>
This commit is contained in:
goldsimon
2018-02-15 14:35:08 +01:00
parent cd1516e2e4
commit 58de2af5f2
4 changed files with 76 additions and 9 deletions

View File

@@ -10,6 +10,9 @@ the code and keeping track of which code is executed.
Just running make will produce the test program.
Running make with parameter 'D=-DLWIP_FUZZ_MULTI_PACKET' will produce a binary
that parses the input data as multiple packets (experimental!).
Then run afl with:
afl-fuzz -i inputs/<INPUT> -o output ./lwip_fuzz