Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

next/582/20240922/v1 #11809

Merged
merged 13 commits into from
Sep 23, 2024
Merged

Conversation

jlucovsky and others added 13 commits September 22, 2024 06:45
Issue: 7126

This commit abandons the use of StringParseUint32 which generates an
error message of there are non-numeric characters.

The SMTP parser had used this function on the packet path; this commit
uses strtoul instead.

An example of the content causing the error message to be emitted:

    3460 LAST
Per the notes for strtoul, since 0 or ULONG_MAX is a legitimate return
value, errno must be cleared before the call so an error can be checked
after the call by testing errno.

Issue: 7126
According to RFC 3261, a single header can be repeated one or more times,
and its name can also be specified using the 'compact form.'

This patch updates the hashmap used for storing headers to accommodate multiple
values instead of just one.

Additionally, if a header name is defined in the compact form, it is expanded
into its long form (i.e., the standard name).

This conversion simplifies the logic for matching a given header
and ensures 1:1 parity with keywords.

Ticket OISF#6374
To match on response SIP headers, those headers must be stored.

Ticket OISF#6374
This adds a sticky (multi) buffer to match the "From" header field
in both requests and responses.

Ticket OISF#6374
This adds a sticky (multi) buffer to match the 'To' header field in
both requests and responses.

Ticket OISF#6374
This adds a sticky (multi) buffer to match the "Via" header field in
both requests and responses.

Ticket OISF#6374
This adds a sticky (multi) buffer to match the "User-Agent" header field in
both requests and responses.

Ticket OISF#6374
This adds a sticky (multi) buffer to match the "Content-Type" header field in
both requests and responses.

Ticket OISF#6374
This adds a sticky (multi) buffer to match the "Content-Length" header field in
both requests and responses.

Ticket OISF#6374
Copy link

codecov bot commented Sep 22, 2024

Codecov Report

Attention: Patch coverage is 96.19835% with 23 lines in your changes missing coverage. Please review.

Project coverage is 82.58%. Comparing base (2b1ad81) to head (7ab8334).
Report is 13 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11809      +/-   ##
==========================================
- Coverage   82.59%   82.58%   -0.02%     
==========================================
  Files         919      914       -5     
  Lines      249091   249500     +409     
==========================================
+ Hits       205738   206045     +307     
- Misses      43353    43455     +102     
Flag Coverage Δ
fuzzcorpus 60.43% <45.43%> (-0.07%) ⬇️
livemode 18.72% <35.28%> (+0.02%) ⬆️
pcap 44.07% <39.58%> (+0.58%) ⬆️
suricata-verify 62.02% <95.00%> (+0.07%) ⬆️
unittests 58.96% <42.31%> (-0.04%) ⬇️

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

@suricata-qa
Copy link

WARNING:

field baseline test %
SURI_TLPR1_stats_chk
.uptime 649 625 96.3%

Pipeline 22763

Copy link
Contributor

@catenacyber catenacyber left a comment

Choose a reason for hiding this comment

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

CI is green
SV branch is correct
Consistent with the approved PRs

nit: 6b7098d will improve on rust style

@victorjulien victorjulien merged commit 7ab8334 into OISF:master Sep 23, 2024
59 checks passed
@victorjulien victorjulien deleted the next/582/20240922/v1 branch September 23, 2024 07:48
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants