-
Notifications
You must be signed in to change notification settings - Fork 169
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(libsinsp): check ipvXnet size before comparing #1992
fix(libsinsp): check ipvXnet size before comparing #1992
Conversation
Signed-off-by: Luca Guerra <[email protected]>
/milestone 0.17.3 |
LGTM label has been added. Git tree hash: bc3d934d9b12751561ff925717a6eece4204dc14
|
Good catch! I think this is the last instance of this, and also a friendly reminder that we'll need to stop having edge-cases for comparisons. |
Perf diff from master - unit tests
Perf diff from master - scap file
Heap diff from master - unit tests
Heap diff from master - scap file
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1992 +/- ##
==========================================
+ Coverage 50.99% 51.21% +0.21%
==========================================
Files 310 311 +1
Lines 39607 39670 +63
Branches 17666 17554 -112
==========================================
+ Hits 20198 20316 +118
+ Misses 14340 14239 -101
- Partials 5069 5115 +46 ☔ 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.
Can we add some tests for these cases? Maybe we will figure out other issues :/
729f534
to
3e90cf9
Compare
Signed-off-by: Luca Guerra <[email protected]>
3e90cf9
to
952cf8a
Compare
Perf diff from master - unit tests
Perf diff from master - scap file
Heap diff from master - unit tests
Heap diff from master - scap file
|
Perf diff from master - unit tests
Perf diff from master - scap file
Heap diff from master - unit tests
Heap diff from master - scap file
|
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, LucaGuerra 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 |
LGTM label has been added. Git tree hash: 64816d120ef8561947035c59bf0266f9b6b97820
|
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?
No
What this PR does / why we need it:
Very similar to #1953 but in the "fd.net" part of the filterchecks. In this case we could get a type confusion for the parameter value, leading to an incorrect comparison (ipv4 vs ipv6).
We still need tests for these cases because they are very tricky.
cc @jasondellaluce , can you think of other places where this may happen?
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: