Skip to content

mpm/ac-ks: fix integer overflow in delta table size calc - #16112

Closed
victorjulien wants to merge 1 commit into
OISF:mainfrom
victorjulien:bug-8844/v4
Closed

mpm/ac-ks: fix integer overflow in delta table size calc#16112
victorjulien wants to merge 1 commit into
OISF:mainfrom
victorjulien:bug-8844/v4

Conversation

@victorjulien

Copy link
Copy Markdown
Member

In very large rulesets with lots of different patterns the size calculation could overflow.

Ticket: #8844.

I didn't find a way to reach this in a SV test.

In very large rulesets with lots of different patterns the
size calculation could overflow.

Ticket: OISF#8844.
@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 72.22222% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.02%. Comparing base (7c66954) to head (e211233).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16112      +/-   ##
==========================================
- Coverage   83.06%   83.02%   -0.04%     
==========================================
  Files        1004     1004              
  Lines      277376   277387      +11     
==========================================
- Hits       230389   230306      -83     
- Misses      46987    47081      +94     
Flag Coverage Δ
fuzzcorpus 61.50% <27.77%> (-0.01%) ⬇️
livemode 18.40% <27.77%> (-0.02%) ⬇️
netns 22.82% <27.77%> (-0.06%) ⬇️
pcap 45.37% <27.77%> (-0.06%) ⬇️
suricata-verify 67.13% <27.77%> (-0.03%) ⬇️
unittests 58.52% <72.22%> (+<0.01%) ⬆️

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@suricata-qa

Copy link
Copy Markdown

Information: QA ran without warnings.

Pipeline = 33351

@victorjulien
victorjulien marked this pull request as ready for review August 26, 2026 07:04

@inashivb inashivb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@victorjulien victorjulien added this to the 9.0 milestone Aug 28, 2026

@jasonish jasonish left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, no reasonable SV test.

@victorjulien

Copy link
Copy Markdown
Member Author

Merged in #16141, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants