]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
fuzz: set flow flags as in Suricata 12864/head 12868/head
authorPhilippe Antoine <pantoine@oisf.net>
Mon, 24 Mar 2025 15:11:44 +0000 (16:11 +0100)
committerPhilippe Antoine <pantoine@oisf.net>
Sat, 29 Mar 2025 09:38:41 +0000 (10:38 +0100)
Fixes: d8ddef4c1485 ("detect: delay tx cleanup in some edge case")
(cherry picked from commit 09aed7e243127741721bd3e490c73d344234b17a)

src/tests/fuzz/fuzz_applayerparserparse.c

index 820f3237446481b6ffd3398c45b6ffde533551d0..e4793d81a824d8fa55265d747ff559b62475fe80 100644 (file)
@@ -113,7 +113,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
     if (f == NULL) {
         return 0;
     }
-    f->flags |= FLOW_IPV4;
+    f->flags |= FLOW_IPV4 | FLOW_SGH_TOCLIENT | FLOW_SGH_TOSERVER;
     f->src.addr_data32[0] = 0x01020304;
     f->dst.addr_data32[0] = 0x05060708;
     f->sp = (uint16_t)((data[2] << 8) | data[3]);