This change assumes that afl-fuzz (and not libfuzzer) will be used
by default.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
# 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 \
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
if test $? != 0;then
echo "compile first library as:"
echo "CC=afl-gcc ./configure"
+ exit 1
fi
if test -z "$1";then