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

Next/20221109/v9 #8165

Merged
merged 25 commits into from
Nov 12, 2022
Merged

Next/20221109/v9 #8165

merged 25 commits into from
Nov 12, 2022

Conversation

victorjulien and others added 25 commits November 10, 2022 15:42
Various parts of ASAN will require creation of threads. At least
LSAN reporting and ASAN stack traces require this. Detect if we
run with ASAN and bypass the noproc setting with a warning.

Bug: OISF#5661.
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.
This commit replaces a SCMalloc/memset with SCCalloc
This commit adds test cases that validate behavior when "content"
immediately precedes "bsize".
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
This commit updates the bsize documentation

1. Describe what happens when "content" immediately precedes "bsize"
2. Include the operators and
3. Include examples using the operators.
This commit removes unused/commented out #include lines.
Issue: 2982

This commit moves bsize validation with respect to content matches to
the post-parse validation stage. This allows bsize to consider all
content-related values, including those that follow the bsize keyword.
@codecov
Copy link

codecov bot commented Nov 12, 2022

Codecov Report

Merging #8165 (a4239d4) into master (41d529f) will increase coverage by 0.04%.
The diff coverage is 90.68%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8165      +/-   ##
==========================================
+ Coverage   81.68%   81.73%   +0.04%     
==========================================
  Files         962      962              
  Lines      276851   276975     +124     
==========================================
+ Hits       226146   226374     +228     
+ Misses      50705    50601     -104     
Flag Coverage Δ
fuzzcorpus 63.52% <79.13%> (+0.16%) ⬆️
suricata-verify 59.41% <80.37%> (+0.04%) ⬆️
unittests 63.37% <92.81%> (+0.01%) ⬆️

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

@suricata-qa
Copy link

WARNING:

field baseline test %
SURI_TLPW1_stats_chk
.tcp.rst 128237 103934 81.05%

Pipeline 10592

@victorjulien victorjulien merged commit a4239d4 into OISF:master Nov 12, 2022
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.

6 participants