-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 cleanups/v4 #9974
Closed
Closed
Detect cleanups/v4 #9974
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
e81aa24
detect/content-inspect: reduce scope of variables
victorjulien cc876b5
detect/content-inspect: pass const to inspect func
victorjulien fae1af6
detect/content-inspect: remove const casting
victorjulien ea33028
detect/content-inspect: assist branch prediction
victorjulien b1d35b3
detect/content-inspect: switch type of enum
victorjulien 11a930c
detect/content-inspect: add entry for InspectionBuffer
victorjulien c1e10ab
detect/dns.query: use new content inspect entry
victorjulien c5dbb3c
detect/krb5.sname: use new content inspect entry
victorjulien 68a3d0a
detect/base64: move content inspection logic
victorjulien 8078a73
detect/content-inspect: reduce scope of internal func
victorjulien a2428cf
detect/content-inspect: localize recursion counting
victorjulien 890eb71
detect/content-inspect: flatten branches
victorjulien 32b4423
detect/isdataat: optimize recursion mismatches
victorjulien 45400a7
detect/payload: remove unneeded pointer reset
victorjulien b61923a
detect/bytemath: pass match ctx directly
victorjulien 8de4a76
detect: optimize struct layout
victorjulien 6a3d9c3
detect/content-inspect: optimize struct layout
victorjulien 6d3bfa9
detect/uri: remove tests that are now done elsewhere
victorjulien File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I understand correctly that the difference between this and
DetectEngineContentInspection
is that this one uses specific types for buffer and inspection type? If so, I wonder if this difference, or an indication of preference of usage should be added to the function description or commit.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've update the commit msg. It's a convenience function that keeps the internals of InspectionBuffer hidden from the callers.