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

sip: use right slice to take line from #11312

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

catenacyber
Copy link
Contributor

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

Describe changes:

  • sip: use right slice to take line from

We iterate over input, but we are now at start.
Avois quadratic complexity turning to OOM.

Ticket: 7093
@catenacyber
Copy link
Contributor Author

This is a minimal change.
A bigger change could be to not parse the line twice...

Copy link

codecov bot commented Jun 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.49%. Comparing base (49ecf37) to head (4ccbcc4).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11312      +/-   ##
==========================================
+ Coverage   82.47%   82.49%   +0.02%     
==========================================
  Files         934      934              
  Lines      252270   252270              
==========================================
+ Hits       208055   208117      +62     
+ Misses      44215    44153      -62     
Flag Coverage Δ
fuzzcorpus 60.26% <100.00%> (ø)
livemode 18.76% <0.00%> (+<0.01%) ⬆️
pcap 43.78% <100.00%> (+<0.01%) ⬆️
suricata-verify 61.33% <100.00%> (+0.01%) ⬆️
unittests 59.92% <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 21113

@victorjulien victorjulien added this to the 8.0 milestone Jun 18, 2024
@victorjulien victorjulien merged commit 4ccbcc4 into OISF:master Jun 18, 2024
53 checks passed
@victorjulien
Copy link
Member

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

3 participants