Skip to content

Commit

Permalink
Provide some dictionary to start with.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Mar 14, 2023
1 parent e1c60a1 commit 8507f54
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
29 changes: 29 additions & 0 deletions test/fuzz/fuzz_core_funcs.dict
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"INVITE"
"CANCEL"
"ACK"
"BYE"
"INFO"
"sip:1234567890@10.0.0.1:5060;transport=tcp;method=REGISTER?to=sip:bob%40biloxi.com"
"SIP/2.0"
"Via:"
"SIP/2.0/UDP"
"10.0.0.1:65535;branch=z9hG4bK1237816229"
"SIP / 2.0 / UDP"
"first.example.com : 4000;ttl=16"
";maddr=224.2.0.1 ;branch=z9hG4bKa7c6a8dlze.1 ,"
"Record-Route:"
"Route:"
"<sip:server10.biloxi.com;lr>,"
"Max-Forwards:"
"From:"
"<sip:987654321@10.0.0.1>;tag=2048067038"
"To:"
"Call-ID:"
"CSeq:"
"1 INVITE"
"Contact:"
"User-Agent:"
"Server:"
"Content-Type:"
"application/sdp"
"Content-Length:"
4 changes: 4 additions & 0 deletions test/fuzz/oss-fuzz-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@ ar -cr libopensips.a `find . -name "*.o" | grep -v '/fuzz_.*.o$'`
for fuzn in msg_parser uri_parser csv_parser core_funcs
do
$CC $CFLAGS $LIB_FUZZING_ENGINE ./parser/fuzz_${fuzn}.o libopensips.a ${LIBS} -o $OUT/fuzz_${fuzn}
if [ -e test/fuzz/fuzz_${fuzn}.dict ]
then
cp test/fuzz/fuzz_${fuzn}.dict $OUT
fi
done

0 comments on commit 8507f54

Please sign in to comment.