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 inbounds override #27853

Merged
merged 3 commits into from
Jan 25, 2019

Conversation

kevingranade
Copy link
Member

@kevingranade kevingranade commented Jan 25, 2019

Summary

SUMMARY: None

Purpose of change

Fixes #27850
The new inbounds() method on tinymap wasn't being called, so it was allowing out-of-bounds accesses, some of which caused crashes.

Describe the solution

Added the virtual keyword to map::inbounds() to that tinymap could override it properly.

@kevingranade kevingranade added <Crash / Freeze> Fatal bug that results in hangs or crashes. [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) labels Jan 25, 2019
@kevingranade kevingranade added this to the 0.D milestone Jan 25, 2019
@ZhilkinSerg ZhilkinSerg added the Code: Tests Measurement, self-control, statistics, balancing. label Jan 25, 2019
@kevingranade kevingranade force-pushed the fix-inbounds-override branch from 93d3f86 to 7ea5c49 Compare January 25, 2019 08:26
@ZhilkinSerg ZhilkinSerg merged commit beb5d09 into CleverRaven:master Jan 25, 2019
@kevingranade kevingranade deleted the fix-inbounds-override branch February 17, 2019 07:21
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` Code: Tests Measurement, self-control, statistics, balancing. <Crash / Freeze> Fatal bug that results in hangs or crashes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants