-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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: Prevent possible OOB access when loading RBAC policies #8186
Conversation
Signed-off-by: jannfis <jann@mistrust.net>
Great @jannfis ! Super fast. FYI, in the PR/commit it might be smarter to reference the Monorail issues rather than the oss-fuzz.com reports. This is because only the monorail issues will become public, and not the oss-fuzz issue. So down the line someone who might not have access to the oss-fuzz dashboard won't be able to follow the link. In this case the monorail and oss-fuzz issues are, respectively:
Just a thought! |
Makes sense @DavidKorczynski. I will refer to both in the future. Thanks. |
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.
LGTM
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.
LGTM
Codecov Report
@@ Coverage Diff @@
## master #8186 +/- ##
==========================================
+ Coverage 41.53% 41.54% +0.01%
==========================================
Files 174 174
Lines 22707 22715 +8
==========================================
+ Hits 9432 9438 +6
- Misses 11921 11923 +2
Partials 1354 1354
Continue to review full report at Codecov.
|
Fixes possible out-of-bounds access for slices returned by CSV reader. Also adds proper unit tests for
loadPolicyLine
Ref: https://oss-fuzz.com/testcase-detail/6031472681680896
/cc @terrytangyuan @hblixt @AdamKorcz @DavidKorczynski
Signed-off-by: jannfis jann@mistrust.net
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist: