From 7255dbe4b703668e7621cdcfc5aa01258a50f0b5 Mon Sep 17 00:00:00 2001 From: Toni Date: Thu, 4 Feb 2021 19:28:52 +0100 Subject: Added fuzzy targets conditional in tests/do.sh.in which prevents the fuzzer from running if nDPI was configured previously --enable-fuzztargets but not for the current config (may produce invalid results). (#1126) * fixed possible NULL pointer dereference for memcpy(), src pointer should never be NULL Signed-off-by: Toni Uhlig Co-authored-by: Luca Deri --- configure.seed | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.seed') diff --git a/configure.seed b/configure.seed index 2533aa82b..70a823aa9 100644 --- a/configure.seed +++ b/configure.seed @@ -23,6 +23,7 @@ AS_IF([test "${with_mipsel+set}" = set],[ AC_ARG_WITH(sanitizer, AS_HELP_STRING([--with-sanitizer], [Build with support for address, undefined and leak sanitizer])) AC_ARG_ENABLE(fuzztargets, AS_HELP_STRING([--enable-fuzztargets], [Enable fuzz targets]),[enable_fuzztargets=$enableval],[enable_fuzztargets=no]) +AS_IF([test "x$enable_fuzztargets" = "xyes"], [BUILD_FUZZTARGETS=1], [BUILD_FUZZTARGETS=0]) AM_CONDITIONAL([BUILD_FUZZTARGETS], [test "x$enable_fuzztargets" = "xyes"]) AS_IF([test "${with_sanitizer+set}" = set],[ @@ -240,6 +241,7 @@ AC_SUBST(CUSTOM_NDPI) AC_SUBST(NDPI_API_VERSION) AC_SUBST(EXTRA_TARGETS) AC_SUBST(BUILD_MINGW) +AC_SUBST(BUILD_FUZZTARGETS) AC_SUBST(JSONC_CFLAGS) AC_SUBST(JSONC_LIBS) AC_SUBST(GCRYPT_ENABLED) -- cgit v1.2.3