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/bsize: improve validation of impossible matching conditions #9710

Closed
wants to merge 2 commits into from

Conversation

jlucovsky
Copy link
Contributor

Cherry-pick of fixes from [3682](https://redmine.openinfosecfoundation.org/issues/3682

Link to redmine ticket: 5606

Describe changes:

  • Cherry-pick fixes from master

Provide values to any of the below to override the defaults.

To use a pull request use a branch name like pr/N where N is the
pull request number.

Alternatively, SV_BRANCH may also be a link to an
OISF/suricata-verify pull-request.

SV_REPO=
SV_BRANCH=pr/1447
SU_REPO=
SU_BRANCH=
LIBHTP_REPO=
LIBHTP_BRANCH=

This commit adds validation of the bsize value(s) with the available
buffer size. Signatures are flagged if the bsize and buffer size are
incompatible.

Issue: 3682
(cherry picked from commit ecfdc24)
Ticket: 2982

This commit validates that the content usage in a rule will not exceed
the dsize value.

Values of distance that cause the right edge to be exceeded are
considered an error and the signature will be rejected.

(cherry picked from commit 7eb5fb1)
@jlucovsky jlucovsky requested a review from a team as a code owner October 30, 2023 14:36
@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 16348

@jlucovsky
Copy link
Contributor Author

Continued in #9721

@jlucovsky jlucovsky closed this Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants