Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Fix undefined behavior in Generator::update #36

Merged
merged 5 commits into from
Sep 18, 2019
Merged

Fix undefined behavior in Generator::update #36

merged 5 commits into from
Sep 18, 2019

Conversation

h3r2tic
Copy link
Contributor

@h3r2tic h3r2tic commented Sep 17, 2019

Background info in #35.

This opts to keep the unsafe mutation of the two Vec<T>ors and one RgbaImage, but wraps those in semi-safe wrappers, only allowing limited mutation, and using UnsafeCell under the hood.

Fixes #35

@h3r2tic h3r2tic requested a review from Jake-Shadle September 17, 2019 17:53
@repi
Copy link
Contributor

repi commented Sep 17, 2019

Sweet.

Also don't forget to add an ittem in the unreleased section of the changelog (can link the PR there also).

@h3r2tic h3r2tic requested a review from MaikKlein September 18, 2019 08:26
@Jake-Shadle Jake-Shadle merged commit 61523f5 into master Sep 18, 2019
@Jake-Shadle Jake-Shadle deleted the fix-ub branch September 18, 2019 10:27
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undefined Behavior in Generator::update
4 participants