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/pcre: Capture count validation check #5827

Closed
wants to merge 2 commits into from

Conversation

jlucovsky
Copy link
Contributor

Continuation of #5826
This PR fixes the validation check between the capture count in the PCRE and the number of variables to extract.

Link to redmine ticket: 4261

Describe changes:

  • clang-format fixups

#suricata-verify-pr:
#suricata-verify-repo:
#suricata-verify-branch:
#suricata-update-pr:
#suricata-update-repo:
#suricata-update-branch:
#libhtp-pr:
#libhtp-repo:
#libhtp-branch:

This commit corrects the validation check between the number of
variables used and the number of specified capture groups.
@jlucovsky jlucovsky requested a review from a team as a code owner February 8, 2021 13:42
@jlucovsky jlucovsky changed the title 4261/2 detect/pcre: Capture count validation check Feb 8, 2021
@codecov
Copy link

codecov bot commented Feb 8, 2021

Codecov Report

Merging #5827 (b10449b) into master (62e665c) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #5827   +/-   ##
=======================================
  Coverage   72.38%   72.38%           
=======================================
  Files         604      604           
  Lines      179369   179370    +1     
=======================================
+ Hits       129837   129842    +5     
+ Misses      49532    49528    -4     
Flag Coverage Δ
suricata-verify 49.15% <100.00%> (+<0.01%) ⬆️
unittests 63.08% <100.00%> (+<0.01%) ⬆️

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

This was referenced Feb 12, 2021
@victorjulien
Copy link
Member

Merged in #5840, thanks!

@jlucovsky jlucovsky deleted the 4261/2 branch May 2, 2021 13:49
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