Fuzzing of native http1 parser
This commit is contained in:
parent
4aa74fa1d8
commit
51fd973642
8 changed files with 132 additions and 6 deletions
25
test/fuzz/http1/runfuzz.sh
Executable file
25
test/fuzz/http1/runfuzz.sh
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
# Run a fuzzing test using american fuzzy lop
|
||||
# Add input strings in input
|
||||
set -eux
|
||||
|
||||
if [ $# -ne 0 ]; then
|
||||
echo "usage: $0"
|
||||
exit 255
|
||||
fi
|
||||
|
||||
MEGS=500 # memory limit for child process (50 MB)
|
||||
|
||||
# remove input and input dirs
|
||||
#test ! -d input || rm -rf input
|
||||
test ! -d output || sudo rm -rf output
|
||||
|
||||
# create if dirs dont exists
|
||||
#test -d input || mkdir input
|
||||
test -d output || mkdir output
|
||||
|
||||
# Run script
|
||||
# CC=/usr/bin/afl-clang
|
||||
sudo afl-fuzz -i input -o output -d -m $MEGS -- /usr/local/sbin/clixon_restconf
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue