Skip to content
This repository has been archived by the owner on Feb 7, 2021. It is now read-only.

Fix UB when T contains uninit bytes #6

Merged
merged 6 commits into from
Feb 11, 2020

Conversation

TyPR124
Copy link
Contributor

@TyPR124 TyPR124 commented Feb 10, 2020

Contains various tests for uninit bytes, and fixes #3. Does not fix UB when T is a ZST.

src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@Lucretiel
Copy link
Owner

Looks good! Some minor comment update suggestions then I'll merge. Thank you for your discovery & work on this!

@TyPR124
Copy link
Contributor Author

TyPR124 commented Feb 10, 2020

How does that look?

@Lucretiel
Copy link
Owner

Looks great, thank you!

@Lucretiel Lucretiel merged commit 9ed4c66 into Lucretiel:master Feb 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undefined Behavior when T contains uninit bytes
2 participants