]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
fuzz: Corrected default options in fuzz scripts [ci skip]
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 13 Mar 2017 22:27:14 +0000 (23:27 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 13 Mar 2017 22:31:15 +0000 (23:31 +0100)
This change assumes that afl-fuzz (and not libfuzzer) will be used
by default.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
devel/fuzz/Makefile
devel/fuzz/README.md
devel/fuzz/run-afl.sh

index dfdbc9c7658bab2131323c0418eae16889fdd5c7..b9bf39ae17e939377f1260f0f379608342c10a68 100644 (file)
@@ -16,8 +16,8 @@
 # along with this file; if not, write to the Free Software Foundation,
 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
-CC?="gcc"
-CFLAGS?=-g -fsanitize=address -fsanitize=undefined
+CC?="afl-gcc"
+#CFLAGS?=-g -fsanitize=address -fsanitize=undefined
 COMMON=-I../../lib/includes -L../../lib/.libs -Wl,-rpath=../../lib/.libs -lgnutls
 
 all: gnutls_pkcs7_parser_fuzzer gnutls_client_fuzzer gnutls_dn_parser_fuzzer \
index 96e3d7dc7ce0b38cd0fe6edb3b9c734c8f8fbb4e..108e1f2b187f9a605bef683367446a56c0196882 100644 (file)
@@ -26,7 +26,7 @@ This will execute AFL (which runs indefinitely until CTRL+C is pressed) and
 provide its output in a "gnutls_pkcs7_parser_fuzzer.PID.out" directory.
 
 
-# Reproducing a specific issue
+# Reproducing a reported issue from oss-fuzz
 
 Assuming an issue on the "gnutls_pkcs7_parser_fuzzer" was found, and the
 reproducer is placed in $FILE, to reproduce locally use the following commands
index e10ae30b8b743498f80e5df2733d2e8845e99708..95c6c430996b88facfbc67c57e698fbed3f0b656 100755 (executable)
@@ -23,6 +23,7 @@ cat ${srcdir}/../../config.log|grep afl-gcc >/dev/null 2>&1
 if test $? != 0;then
        echo "compile first library as:"
        echo "CC=afl-gcc ./configure"
+       exit 1
 fi
 
 if test -z "$1";then