From 9e12341241ce4f6618bdf459c162f8465c7b2841 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 21 Oct 2025 07:19:55 +0200 Subject: [PATCH] detect: address intermittent UT crash on OpenBSD Add missing flow memset in test SCSigOrderingTest12 to avoid the crash. Test SCSigOrderingTest12 : Info: unittest-helper: Sid 1 matched 1 times, as expected [UTHCheckPacketMatchResults:util-unittest-helper.c:638] Info: unittest-helper: Sid 2 matched 1 times, as expected [UTHCheckPacketMatchResults:util-unittest-helper.c:638] bash: line 144: 88567 Segmentation fault (core dumped) ./src/suricata -u -l /tmp/ Bug: #8008. (cherry picked from commit 232f0572e075d7e141103c310e38b1eac0836952) --- src/detect-engine-sigorder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect-engine-sigorder.c b/src/detect-engine-sigorder.c index 01310fd617..6c0e62c4da 100644 --- a/src/detect-engine-sigorder.c +++ b/src/detect-engine-sigorder.c @@ -1997,7 +1997,7 @@ static int SCSigOrderingTest12(void) Packet *p = NULL; uint8_t buf[] = "test message"; Flow f; - + memset(&f, 0, sizeof(f)); FLOW_INITIALIZE(&f); f.flags |= FLOW_IPV4; f.alproto = ALPROTO_UNKNOWN;