[PATCH 1 of 1] configure: Fix --disable-fuzz
Alexander Dahl
ada at thorsis.com
Wed Mar 11 18:04:04 AWST 2020
When explicitly passing --disable-fuzz to ./configure fuzz was actually
enabled.
Signed-off-by: Alexander Dahl <ada at thorsis.com>
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -341,14 +341,21 @@
AC_ARG_ENABLE(fuzz,
[ --enable-fuzz Build fuzzing. Not recommended for deployment.],
[
- AC_DEFINE(DROPBEAR_FUZZ, 1, Fuzzing)
- AC_MSG_NOTICE(Enabling fuzzing)
- DROPBEAR_FUZZ=1
- # libfuzzer needs linking with c++ libraries
- AC_PROG_CXX
+ if test "x$enableval" = "xyes"; then
+ AC_DEFINE(DROPBEAR_FUZZ, 1, Fuzzing)
+ AC_MSG_NOTICE(Enabling fuzzing)
+ DROPBEAR_FUZZ=1
+ # libfuzzer needs linking with c++ libraries
+ AC_PROG_CXX
+ else
+ AC_DEFINE(DROPBEAR_FUZZ, 0, Fuzzing)
+ AC_MSG_NOTICE(Disabling fuzzing)
+ DROPBEAR_FUZZ=0
+ fi
],
[
AC_DEFINE(DROPBEAR_FUZZ, 0, Fuzzing)
+ AC_MSG_NOTICE(Disabling fuzzing)
DROPBEAR_FUZZ=0
]
More information about the Dropbear
mailing list