From 5cec270598b90d2fa54a09dc38a41846250926cb Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Tue, 7 Jan 2025 13:57:25 +0100 Subject: [PATCH] detect: move fields around to fill memory holes to make scan-build happy avoiding its warning : Excessive padding in 'struct DetectEngineThreadCtx_' (33 padding bytes, where 1 is optimal) --- src/detect.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/detect.h b/src/detect.h index b0147e552f..ea81092487 100644 --- a/src/detect.h +++ b/src/detect.h @@ -1137,9 +1137,6 @@ typedef struct DetectEngineThreadCtx_ { /* byte_* values */ uint64_t *byte_values; - uint8_t *base64_decoded; - int base64_decoded_len; - /* counter for the filestore array below -- up here for cache reasons. */ uint16_t filestore_cnt; @@ -1181,6 +1178,9 @@ typedef struct DetectEngineThreadCtx_ { on a frame is complete. */ Packet *p; + uint8_t *base64_decoded; + int base64_decoded_len; + uint16_t alert_queue_size; uint16_t alert_queue_capacity; PacketAlert *alert_queue;