snort3: update to 3.13.2.0

Changelog: https://github.com/snort3/snort3/releases/tag/3.13.2.0

Include build fix which been submitted upstream: https://github.com/snort3/snort3/pull/498

Signed-off-by: John Audia <therealgraysky@proton.me>
This commit is contained in:
John Audia authored and Josef Schlehofer committed 2026-11-17 10:45:27 +01:00
1 parent 2870e66ee6
commit beeeacf1e2
3 files changed
+45 -4

No files matched your search

+2 -2
View File
@@ -6,12 +6,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=snort3
PKG_VERSION:=3.12.2.0
PKG_VERSION:=3.13.2.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/snort3/snort3/tar.gz/$(PKG_VERSION)?
PKG_HASH:=43000d6b0e0307bc1a735874d00deb61e8b6a96d074f8cc9b2fe2cde0058720b
PKG_HASH:=298367524a31f0d4725ef12b2b06265b4e76e6545f990ae3dc3b5e4c10f6e0ea
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>, John Audia <therealgraysky@proton.me>
PKG_LICENSE:=GPL-2.0-only
@@ -0,0 +1,41 @@
From c900939698e2e45d6894f0116c13da2bb1b6ddb4 Mon Sep 17 00:00:00 2001
From: John Audia <therealgraysky@proton.me>
Date: Fri, 6 Nov 2026 08:54:44 +0000
Subject: [PATCH] flow: fix DumpFlowsBinaryDescriptor size assert on 32-bit
non-x86
The static_assert assumes the struct is 132 bytes on all 32-bit targets.
That only holds on i386, where uint64_t is 4-byte aligned inside structs.
ARM EABI, MIPS o32 and PowerPC align uint64_t to 8, which adds padding
before client_pkts and before flow_mem, so sizeof is 136 and the build fails:
dump_flows_descriptor.h:353:49: error: static assertion failed
note: the comparison reduces to '(136 == 132)'
Account for uint64_t alignment in the expected size. The struct layout is
unchanged, so the binary record format stays the same on every arch.
Seen in OpenWrt CI: x86_64/aarch64/riscv64 (144) and i386 (132) pass,
arm, mips, mipsel and powerpc fail with 136.
---
src/flow/dump_flows_descriptor.h | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--- a/src/flow/dump_flows_descriptor.h
+++ b/src/flow/dump_flows_descriptor.h
@@ -348,9 +348,11 @@ struct DumpFlowsBinaryDescriptor
uint64_t peak_flow_mem = 0; // Flow::get_peak_mem_usage() for the current logical session
};
-// Size is ABI-dependent: 144 bytes on 64-bit, 132 on 32-bit. This assert is a
-// tripwire so a layout change can't slip through unnoticed.
-static_assert(sizeof(DumpFlowsBinaryDescriptor) == (sizeof(void*) == 8 ? 144 : 132),
+// Size is ABI-dependent: 144 bytes on 64-bit, 136 on 32-bit ABIs that align
+// uint64_t to 8 (ARM, MIPS, PPC) and 132 on those that align it to 4 (i386).
+// This assert is a tripwire so a layout change can't slip through unnoticed.
+static_assert(sizeof(DumpFlowsBinaryDescriptor) ==
+ (sizeof(void*) == 8 ? 144 : (alignof(uint64_t) == 8 ? 136 : 132)),
"binary flow record format may have changed; ensure all consumers are updated");
class DumpFlowsDescriptor
@@ -1,7 +1,7 @@
--- a/src/main/process.cc
+++ b/src/main/process.cc
@@ -704,7 +704,7 @@ int DisplayBanner()
LogMessage(" Copyright (C) 1998-2013 Sourcefire, Inc., et al.\n");
@@ -680,7 +680,7 @@ int DisplayBanner()
#endif
LogMessage(" Using DAQ version %s\n", daq_version_string());
#ifdef HAVE_HYPERSCAN
- LogMessage(" Using Hyperscan version %s\n", hs_version());