]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
fuzz: init reverse before calling AppLayerProtoDetectGetProto
authorPhilippe Antoine <pantoine@oisf.net>
Mon, 3 Feb 2025 12:47:37 +0000 (13:47 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 10 Feb 2025 19:01:35 +0000 (20:01 +0100)
Completes commit fec06f8ac3954c19081fcf4005543b845dbef245

The 2 callers in suricata itself already do that

src/tests/fuzz/fuzz_applayerprotodetectgetproto.c

index 926dafb320157df7be062b62611335055c8fb9a5..e5fb8f6ade2c2418add24d83e2393119d4079f0b 100644 (file)
@@ -26,7 +26,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
 {
     Flow *f;
     TcpSession ssn;
-    bool reverse;
+    bool reverse = false;
 
     if (alpd_tctx == NULL) {
         //global init