Skip to content

Yaml null 8651 v5 - #15626

Closed
catenacyber wants to merge 2 commits into
OISF:mainfrom
catenacyber:yaml-null-8651-v5
Closed

Yaml null 8651 v5#15626
catenacyber wants to merge 2 commits into
OISF:mainfrom
catenacyber:yaml-null-8651-v5

Conversation

@catenacyber

Copy link
Copy Markdown
Contributor

Link to ticket: https://redmine.openinfosecfoundation.org/issues/8651

Describe changes:

  • conf: introduce SCConfGetNonNull to not null deref on yaml null values or such

SV_BRANCH=OISF/suricata-verify#3162

#15622 with better SCConfGetNonNull

Ticket: 8651

Behaves like SCConfGet but returns 0 on null value
Ticke: 8651

Uses it in place when we dereferenced the value straight away
after checking SCConfGet result but not its value
@catenacyber
catenacyber requested review from a team, jasonish and victorjulien as code owners June 12, 2026 11:41
@catenacyber catenacyber mentioned this pull request Jun 12, 2026
@suricata-qa

Copy link
Copy Markdown

WARNING:

field baseline test %
SURI_TLPR1_stats_chk
.app_layer.flow.sip_tcp 2 0 -
.app_layer.flow.sip_udp 154 36 23.38%
.app_layer.error.sip_tcp.parser 36 0 -
.app_layer.error.sip_udp.parser 8849 0 -
.app_layer.tx.sip_udp 2 40 2000.0%

Pipeline = 32010

@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.88889% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.87%. Comparing base (8a4eea4) to head (77f9739).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15626      +/-   ##
==========================================
- Coverage   82.87%   82.87%   -0.01%     
==========================================
  Files        1006     1006              
  Lines      273527   273531       +4     
==========================================
- Hits       226698   226682      -16     
- Misses      46829    46849      +20     
Flag Coverage Δ
fuzzcorpus 61.36% <65.82%> (+<0.01%) ⬆️
livemode 18.38% <75.94%> (-0.02%) ⬇️
netns 22.78% <68.75%> (+<0.01%) ⬆️
pcap 45.18% <69.62%> (-0.04%) ⬇️
suricata-verify 66.66% <86.07%> (-0.01%) ⬇️
unittests 58.52% <66.25%> (-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 added this to the 9.0 milestone Jun 12, 2026
@victorjulien

Copy link
Copy Markdown
Member

Merged in #15636, 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