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

Container classes: prevent item ref invalidation when adding new items #306

Open
floooh opened this issue Aug 10, 2018 · 0 comments
Open
Assignees
Labels

Comments

@floooh
Copy link
Owner

floooh commented Aug 10, 2018

If an item to be added is a reference to an item in the same container, and the container needs to grow, the item reference will be invalid and a memory corruption might happen. Detect if the container needs to grow, and create a copy of the item before growing.

@floooh floooh added the bug label Aug 10, 2018
@floooh floooh self-assigned this Aug 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant