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 array access #45291

Merged
merged 1 commit into from
Nov 8, 2020

Conversation

jbytheway
Copy link
Contributor

Summary

SUMMARY: None

Purpose of change

Refactoring in #41693 accidentally introduced an out-of-bounds array access in overmapbuffer::scents_near.

Describe the solution

Fix it.

Describe alternatives you've considered

None.

Testing

Unit tests pass.

Additional context

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) labels Nov 7, 2020
Refactoring in CleverRaven#41693 accidentally introduced an out-of-bounds array
access in overmapbuffer::scents_near.  Fix it.
@jbytheway jbytheway force-pushed the fix_out_of_bounds_access branch from 14973bb to 3783a24 Compare November 8, 2020 02:53
@ZhilkinSerg ZhilkinSerg merged commit cbcf5fd into CleverRaven:master Nov 8, 2020
@jbytheway jbytheway deleted the fix_out_of_bounds_access branch November 8, 2020 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants