]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
fuzz: better init for signature parsing harness
authorPhilippe Antoine <pantoine@oisf.net>
Fri, 10 Jan 2025 16:27:55 +0000 (17:27 +0100)
committerPhilippe Antoine <pantoine@oisf.net>
Mon, 13 Jan 2025 12:39:02 +0000 (13:39 +0100)
It needs app-layer registration for the names

src/tests/fuzz/fuzz_siginit.c

index a50e1fd67ebf3f0180c0a7753e06791afca6b794..c01f4c196e7aeefe16caef51f0f0f9936c64d5f6 100644 (file)
@@ -10,6 +10,7 @@
 #include "util-classification-config.h"
 #include "detect-engine.h"
 #include "detect-parse.h"
+#include "app-layer.h"
 
 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
 
@@ -28,6 +29,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
         SpmTableSetup();
         EngineModeSetIDS();
         SigTableInit();
+        AppLayerSetup();
         SigTableSetup();
     }
     if (cnt++ == 1024) {