]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
wrapper script for fuzzing the server
authorAlan T. DeKok <aland@freeradius.org>
Sat, 9 Nov 2019 20:43:44 +0000 (15:43 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 9 Nov 2019 20:43:44 +0000 (15:43 -0500)
scripts/build/fuzzer [new file with mode: 0755]

diff --git a/scripts/build/fuzzer b/scripts/build/fuzzer
new file mode 100755 (executable)
index 0000000..09c40dc
--- /dev/null
@@ -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/