-
Notifications
You must be signed in to change notification settings - Fork 170
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
fix(userspace/libsinsp): fixed CO_IN filter crafted value. #2019
Conversation
Signed-off-by: Federico Di Pierro <[email protected]> Co-authored-by: Luca Guerra <[email protected]>
/milestone 0.18.0 |
Perf diff from master - unit tests
Heap diff from master - unit tests
Heap diff from master - scap file
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2019 +/- ##
==========================================
+ Coverage 74.14% 74.22% +0.07%
==========================================
Files 253 253
Lines 30834 30845 +11
Branches 5404 5391 -13
==========================================
+ Hits 22863 22894 +31
+ Misses 7946 7923 -23
- Partials 25 28 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
This finally unblocks Falco libs bump <3 🚀
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, FedeDP The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area libsinsp
Does this PR require a change in the driver versions?
What this PR does / why we need it:
#1904 had a small refactor of the management of
CO_IN
comparison forPT_CHARBUF
fields: https://github.com/falcosecurity/libs/pull/1904/files#diff-1058cd2ebabb1fdd8503ea762a0f06f33af56cf993b3eae8a5f1919f9ef2f5d2L1026Basically,
craft_filter_value
is now responsible of returning a correctly-sizeditem
forPT_CHARBUF
, but L1041 (https://github.com/falcosecurity/libs/pull/1904/files#diff-1058cd2ebabb1fdd8503ea762a0f06f33af56cf993b3eae8a5f1919f9ef2f5d2L1041) was not updated to use the newly-computed operator len.Special thanks to @LucaGuerra for spotting the issue and working 4-hands with me on this.
Which issue(s) this PR fixes:
Fixes #2018
Special notes for your reviewer:
The newly added test was double-checked against libs 0.17.3 were it was fully green.
Does this PR introduce a user-facing change?: