Skip to content

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