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

detect-content: error on single char hex pairs - v3 #7168

Closed
wants to merge 1 commit into from

Conversation

jasonish
Copy link
Member

Previous PR: #7160

Changes from last PR:

  • use DetectEngineAppendSig
  • test |22 2 22| from ticket

Fix parsing of content like "|aa b cc|" which was parsed as "|aa bc|"
without error or warning. This will now fail out, requiring all hex
values to be 2 chars.

Redmine ticket: https://redmine.openinfosecfoundation.org/issues/5201

suricata-verify-pr: 792

Fix parsing of content like "|aa b cc|" which was parsed as "|aa bc|"
without error or warning. This will now fail out, requiring all hex
values to be 2 chars.

Ticket OISF#5201
@codecov
Copy link

codecov bot commented Mar 23, 2022

Codecov Report

Merging #7168 (d7c7d7e) into master (3a490fb) will increase coverage by 0.18%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #7168      +/-   ##
==========================================
+ Coverage   78.06%   78.25%   +0.18%     
==========================================
  Files         628      628              
  Lines      185266   185278      +12     
==========================================
+ Hits       144635   144981     +346     
+ Misses      40631    40297     -334     
Flag Coverage Δ
fuzzcorpus 60.53% <100.00%> (+0.54%) ⬆️
suricata-verify 54.58% <100.00%> (-0.02%) ⬇️
unittests 63.12% <100.00%> (+<0.01%) ⬆️

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

This was referenced Mar 25, 2022
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.

Looks good

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 6661

@victorjulien
Copy link
Member

Merged in #7172, thanks!

@jasonish jasonish deleted the issue-5201-content/v3 branch January 31, 2023 15:18
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