From: Jeff Lucovsky Date: Wed, 16 Oct 2024 14:37:20 +0000 (-0400) Subject: profiling: Correct profiling data array size X-Git-Tag: suricata-7.0.8~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4015b3ec5daab7ca266b5f2282450931d56e4170;p=thirdparty%2Fsuricata.git profiling: Correct profiling data array size The profiling arrays are incorrectly sized by the number of thread modules. Since they contain app-layer protocol data, they should be sized by ALPROTO_MAX. (cherry picked from commit 799822c3db46648edadae570404d74f6ec42efdd) --- diff --git a/src/util-profiling.c b/src/util-profiling.c index 6671e40cf5..7c5afd8478 100644 --- a/src/util-profiling.c +++ b/src/util-profiling.c @@ -75,8 +75,8 @@ SCProfilePacketData packet_profile_data6[257]; /**< all proto's + tunnel */ SCProfilePacketData packet_profile_tmm_data4[TMM_SIZE][257]; SCProfilePacketData packet_profile_tmm_data6[TMM_SIZE][257]; -SCProfilePacketData packet_profile_app_data4[TMM_SIZE][257]; -SCProfilePacketData packet_profile_app_data6[TMM_SIZE][257]; +SCProfilePacketData packet_profile_app_data4[ALPROTO_MAX][257]; +SCProfilePacketData packet_profile_app_data6[ALPROTO_MAX][257]; SCProfilePacketData packet_profile_app_pd_data4[257]; SCProfilePacketData packet_profile_app_pd_data6[257];