From: Philippe Antoine Date: Wed, 6 Sep 2023 11:22:42 +0000 (+0200) Subject: fuzz: enable by default all protocols X-Git-Tag: suricata-7.0.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30b5338af3a796de5d4e382e6556339fd365d56a;p=thirdparty%2Fsuricata.git fuzz: enable by default all protocols That means DNP3, ENIP and NFS Ticket: #6189 --- diff --git a/src/app-layer-detect-proto.c b/src/app-layer-detect-proto.c index 4ae69350df..c7f902edc2 100644 --- a/src/app-layer-detect-proto.c +++ b/src/app-layer-detect-proto.c @@ -1902,6 +1902,11 @@ int AppLayerProtoDetectConfProtoDetectionEnabledDefault( if (RunmodeIsUnittests()) goto enabled; +#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + // so that fuzzig takes place for DNP3 and such + default_enabled = true; +#endif + r = snprintf(param, sizeof(param), "%s%s%s", "app-layer.protocols.", alproto, ".enabled"); if (r < 0) {