Skip to content

Misc fixes/v4 - #16136

Open
victorjulien wants to merge 3 commits into
OISF:mainfrom
victorjulien:misc-fixes/v4
Open

Misc fixes/v4#16136
victorjulien wants to merge 3 commits into
OISF:mainfrom
victorjulien:misc-fixes/v4

Conversation

@victorjulien

@victorjulien victorjulien commented Aug 28, 2026

Copy link
Copy Markdown
Member

SCACTileSearchLarge uses 32-bit next-state cells holding a 24-bit state
index. When there are more than 65536 states, CheckMatch was called with
(uint16_t)state, silently discarding the bits beyond 16.

Address this by widening CheckMatch's state parameter.

Ticket: OISF#8841.
Lookup code used a different mask than the construct code.

Ticket: OISF#8820.
nfs4_res_secinfo_no_name() used a local var "i2" to walk through
the security-flavor array entries, but returned the pre-walk var "i"
in the Ok at the end. Every byte of the flavor array was therefore left
unconsumed in the input stream and re-interpreted by count next iteration
as a subsequent compound operation.

Addressed by returning i2 instead of i so all flavor bytes are consumed.

Ticket: OISF#8860.
@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.04%. Comparing base (389700e) to head (d223407).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16136      +/-   ##
==========================================
- Coverage   83.05%   83.04%   -0.02%     
==========================================
  Files        1004     1004              
  Lines      277407   277407              
==========================================
- Hits       230410   230365      -45     
- Misses      46997    47042      +45     
Flag Coverage Δ
fuzzcorpus 61.50% <25.00%> (ø)
livemode 18.40% <0.00%> (-0.02%) ⬇️
netns 22.85% <0.00%> (-0.06%) ⬇️
pcap 45.39% <50.00%> (+<0.01%) ⬆️
suricata-verify 67.20% <25.00%> (-0.05%) ⬇️
unittests 58.53% <0.00%> (-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.

@victorjulien
victorjulien marked this pull request as ready for review August 28, 2026 10:17
@suricata-qa

Copy link
Copy Markdown

Information: QA ran without warnings.

Pipeline = 33425

@jasonish

Copy link
Copy Markdown
Member

I brought the test over for 8860: OISF/suricata-verify#3332

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.

3 participants