Skip to content

Commit

Permalink
profiling: Correct profiling data array size
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jlucovsky committed Oct 17, 2024
1 parent 55b922c commit bbbec0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util-profiling.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit bbbec0f

Please sign in to comment.