-
Notifications
You must be signed in to change notification settings - Fork 282
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 reading 1 byte off the end when the string does not contain a '\0' byte #1888
Conversation
@Mergifyio backport 0.27-maintenance |
Command
|
Codecov Report
@@ Coverage Diff @@
## main #1888 +/- ##
=======================================
Coverage 60.80% 60.81%
=======================================
Files 96 96
Lines 18963 18960 -3
Branches 9512 9512
=======================================
- Hits 11531 11530 -1
+ Misses 5131 5130 -1
+ Partials 2301 2300 -1
Continue to review full report at Codecov.
|
…l?id=37889 Avoid reading 1 byte off the end when the string does not contain a '\0' byte.
8586bd2
to
bd211a9
Compare
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
Command
|
Avoid reading 1 byte off the end when the string does not contain a '\0' byte (backport #1888)
Fixes: #1887
Credit to OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37889
These three loops were followed by a
++i
operation, which worked correctly when the string contained a'\0'
byte, but advancedi
to one byte beyond the end of the buffer when it didn't.