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 potential OOB read in localIjToCell #684

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

isaacbrodsky
Copy link
Collaborator

Fixes a potential out-of-bounds read in localIjToCell that can occur with a particular combination of base cell, resolution, and highly negative IJ coordinates. The coordinates were only being tested against positive bounds, which was incorrect. As the function that compares to unit vectors handles this already, that check is replaced with that call.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.001%) to 99.034% when pulling 44d56b5 on isaacbrodsky:fix-localij-array-oob into f581626 on uber:master.

@isaacbrodsky isaacbrodsky merged commit fce1c53 into uber:master Sep 12, 2022
@isaacbrodsky isaacbrodsky deleted the fix-localij-array-oob branch September 12, 2022 23:55
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.

None yet

4 participants