Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detect/rule: Use correct buffer index for sizing mpm_stats array #9489

Closed
wants to merge 3 commits into from

Conversation

jlucovsky
Copy link
Contributor

Link to redmine ticket: 5211

Describe changes:

  • Removed excess increment of buffer index
  • Size mpm stats array to DE context buffer id max

Provide values to any of the below to override the defaults.

To use a pull request use a branch name like pr/N where N is the
pull request number.

Alternatively, SV_BRANCH may also be a link to an
OISF/suricata-verify pull-request.

SV_REPO=
SV_BRANCH=
SU_REPO=
SU_BRANCH=
LIBHTP_REPO=
LIBHTP_BRANCH=

This commit removes a second, unnecessary increment of the de_ctx buffer
id.

Issue: 5211
This commit uses the detect engine buffer id instead of the global
value.

Issue: 5211
@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Merging #9489 (a0c9076) into master (908f49e) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9489      +/-   ##
==========================================
- Coverage   82.17%   82.17%   -0.01%     
==========================================
  Files         968      968              
  Lines      274202   274200       -2     
==========================================
- Hits       225328   225320       -8     
- Misses      48874    48880       +6     
Flag Coverage Δ
fuzzcorpus 64.07% <0.00%> (-0.01%) ⬇️
suricata-verify 60.87% <0.00%> (+<0.01%) ⬆️
unittests 62.88% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 15959

@victorjulien
Copy link
Member

Merged in #9492, thanks!

@jlucovsky jlucovsky deleted the 5211/1 branch September 17, 2023 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants