From: Alan T. DeKok Date: Sat, 9 Nov 2019 20:43:44 +0000 (-0500) Subject: wrapper script for fuzzing the server X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae49cdc57424cdc6736ef1fb2317b9ca075501af;p=thirdparty%2Ffreeradius-server.git wrapper script for fuzzing the server --- diff --git a/scripts/build/fuzzer b/scripts/build/fuzzer new file mode 100755 index 00000000000..09c40dce8cb --- /dev/null +++ b/scripts/build/fuzzer @@ -0,0 +1,15 @@ +#!/bin/sh + +# +# Wrapper to run the fuzzer. Run from the top-level source directory +# +# ./scripts/build/fuzzer [radius|dhcpv4|dhcpv6] +# + +if [ "$1" = "" ]; then + PROTOCOL=radius +else + PROTOCOL=$1 +fi + +FR_LIBRARY_PATH=./build/lib/ FR_LIBRARY_FUZZ_PROTOCOL=$PROTOCOL FR_DICTIONARY_DIR=./share/dictionary/ ./build/make/jlibtool --mode=execute ./build/bin/local/fuzzer_$PROTOCOL -max_len=1000 corp-$PROTOCOL/