From: Jeff Lucovsky Date: Wed, 16 Oct 2024 14:37:20 +0000 (-0400) Subject: profiling: Correct profiling data array size X-Git-Tag: suricata-8.0.0-beta1~779 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=799822c3db46648edadae570404d74f6ec42efdd;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. --- diff --git a/src/util-profiling.c b/src/util-profiling.c index 295253eca3..80d3938bd4 100644 --- a/src/util-profiling.c +++ b/src/util-profiling.c @@ -72,8 +72,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];