Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

unsoundness in code #11

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants