From 005a3fb1686e87b5f4bc6901d5c10753302189ef Mon Sep 17 00:00:00 2001 From: Arthur Chan Date: Wed, 11 Mar 2026 22:57:49 +0000 Subject: [PATCH] fuzz: Add dependency to fuzz RADIUS message parsing Due to the static build, libcharon will depend on libradius as soon as eap-radius is enabled even if not actually used. So in order to avoid breaking the build of fuzz_ike when enabling this in CIFuzz, enable it now before adding the actual fuzzer. Closes strongswan/strongswan#3028 Signed-off-by: Arthur Chan --- fuzz/Makefile.am | 2 ++ scripts/test.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am index f42e887a8..c35734015 100644 --- a/fuzz/Makefile.am +++ b/fuzz/Makefile.am @@ -7,6 +7,7 @@ AM_CPPFLAGS = @CPPFLAGS@ \ -I$(top_srcdir)/src/libtpmtss \ -I$(top_srcdir)/src/libtnccs \ -I$(top_srcdir)/src/libtnccs/plugins/tnccs_20 \ + -I$(top_srcdir)/src/libradius \ -DPLUGINDIR=\""$(abs_top_builddir)/src/libstrongswan/plugins\"" \ -DPLUGINS="\"${fuzz_plugins}\"" @@ -28,6 +29,7 @@ pb_tnc_ldflags = \ ike_ldflags = \ $(top_builddir)/src/libcharon/.libs/libcharon.a \ + $(top_builddir)/src/libradius/.libs/libradius.a \ $(fuzz_ldflags) FUZZ_TARGETS=fuzz_certs fuzz_crls fuzz_ocsp_req fuzz_ocsp_rsp \ diff --git a/scripts/test.sh b/scripts/test.sh index a76384818..fec05c822 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -432,7 +432,7 @@ freebsd) fuzzing) CFLAGS="$CFLAGS -DNO_CHECK_MEMWIPE" CONFIG="--enable-fuzzing --enable-static --disable-shared --disable-scripts - --enable-imc-test --enable-tnccs-20" + --enable-imc-test --enable-tnccs-20 --enable-eap-radius" # don't run any of the unit tests export TESTS_RUNNERS= # prepare corpora