Skip to content

unsoundness in code #11

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

Open
Dylan-DPC-zz opened this issue Jul 21, 2020 · 1 comment
Open

unsoundness in code #11

Dylan-DPC-zz opened this issue Jul 21, 2020 · 1 comment
Assignees

Comments

@Dylan-DPC-zz
Copy link

Hi I found this via a crater run. This crate uses std::mem::unitialized which is both deprecated and unsound. You can refer the linked advisory to know more

@RalfJung
Copy link

RalfJung commented Aug 31, 2020

Specifically, the bug is here:

lfs: unsafe { mem::uninitialized::<lfs::lfs>() },

the type instantiated there may not be left uninitialized. rust-lang/rust#71274 will detect this and turn it into a panic.

@brandonedens brandonedens self-assigned this Sep 2, 2020
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

No branches or pull requests

3 participants