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
Avoid exceeding the maximum number of fields when loading a rule #17490
Merged
vikman90
merged 1 commit into
4.4.5
from
15638-analysisd-avoid-segfault-decoder_order_size
Jun 9, 2023
Merged
Avoid exceeding the maximum number of fields when loading a rule #17490
vikman90
merged 1 commit into
4.4.5
from
15638-analysisd-avoid-segfault-decoder_order_size
Jun 9, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cborla
added
type/bug
Something isn't working
module/analysis
Issues related to the Analysis daemon
impact/low
labels
Jun 7, 2023
ctest 🟢ctest
|
3 tasks
cborla
force-pushed
the
15638-analysisd-avoid-segfault-decoder_order_size
branch
from
June 8, 2023 22:03
2da488e
to
3d753b8
Compare
vikman90
approved these changes
Jun 9, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The purpose of this code is to prevent analysisd from loading a rule that exceeds the number of fields allowed by configuration, to avoid exceeding the value of the analysisd.decoder_order_size parameter. Avoiding in this way that analysisd breaks when trying to use this rule.
Configuration
Default configuration
internal_options.conf default value:
Custom configuration
large rule
Tests
Case 1
analysisd.decoder_order_size=256
fields name
Case 2
analysisd.decoder_order_size=255
fields name
Case 3
analysisd.decoder_order_size=254
fields name
Case 4
analysisd.decoder_order_size=253
fields name
Case 5
analysisd.decoder_order_size=253
fields name