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

Fixes for SIP parser (backport7) #12547

Closed
wants to merge 3 commits into from

Conversation

glongo
Copy link
Contributor

@glongo glongo commented Feb 9, 2025

Make sure these boxes are checked accordingly before submitting your Pull Request -- thank you.

Contribution style:

Our Contribution agreements:

Changes (if applicable):

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

Describe changes:

cherry-picked from commit 8ff80cb
Accepts valid characters as defined in RFC3261.

cherry-picked from commit 7e993d5
The `is_version_char` function incorrectly allowed characters that are not
part of the valid SIP version "SIP/2.0".

For instance, 'HTTP/1.1' was mistakenly accepted as a valid SIP version,
although it's not.

This commit fixes the issue by updating the condition to strictly
check for the correct version string.

cherry-picked from commit 69f841c
@glongo glongo requested a review from jasonish as a code owner February 9, 2025 12:04
Copy link

codecov bot commented Feb 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.24%. Comparing base (2be430e) to head (230f045).
Report is 6 commits behind head on main-7.0.x.

Additional details and impacted files
@@              Coverage Diff               @@
##           main-7.0.x   #12547      +/-   ##
==============================================
+ Coverage       83.13%   83.24%   +0.10%     
==============================================
  Files             922      922              
  Lines          261187   261205      +18     
==============================================
+ Hits           217147   217436     +289     
+ Misses          44040    43769     -271     
Flag Coverage Δ
fuzzcorpus 64.23% <98.07%> (+0.26%) ⬆️
suricata-verify 63.46% <100.00%> (-0.02%) ⬇️
unittests 62.37% <32.81%> (+<0.01%) ⬆️

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

This was referenced Feb 10, 2025
@victorjulien
Copy link
Member

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

2 participants