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

Replaced mem::uninitialized() with ptr::read. #27

Merged
merged 2 commits into from
Nov 21, 2020
Merged

Replaced mem::uninitialized() with ptr::read. #27

merged 2 commits into from
Nov 21, 2020

Conversation

zslayton
Copy link
Owner

Fixes #25.

Replaces usages of mem::uninitialized (which now panics) with ptr::read.

@zslayton zslayton merged commit a98d9a6 into master Nov 21, 2020
@zslayton zslayton deleted the ptr-read branch November 21, 2020 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Heads-up: UB due to misuse of mem::uninitialized will soon lead to panic
1 participant