]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
fuzz: enable by default all protocols
authorPhilippe Antoine <pantoine@oisf.net>
Wed, 6 Sep 2023 11:22:42 +0000 (13:22 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 6 Sep 2023 18:22:48 +0000 (20:22 +0200)
That means DNP3, ENIP and NFS

Ticket: #6189

src/app-layer-detect-proto.c

index 4ae69350df540d9797cd63895c87f682f967b8de..c7f902edc22f2d126c5f0f98efec1e70b04a8ec2 100644 (file)
@@ -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) {