Skip to content
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 out-of-bounds read #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix out-of-bounds read #26

wants to merge 1 commit into from

Conversation

o9000
Copy link

@o9000 o9000 commented Apr 5, 2017

When the direction is right-to-left, i == -1 so memory is read one byte before the string before the pointer is checked against the bound.

@joeftiger
Copy link

joeftiger commented Jan 13, 2021

You only changed the order of the && expression, this has no benefit at all except maybe for one boolean check.

@o9000
Copy link
Author

o9000 commented Jan 15, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants