-
Notifications
You must be signed in to change notification settings - Fork 347
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
Fails to detect use after drop (after transmute) #1650
Comments
There's no use-after-free here since there is no free as part of the There is a use-after-drop, but I think the game is still open whether that is UB in itself or not. (Of course it is UB for We had a related issue somewhere that I currently cannot find... about marking memory as uninitialized on move. |
Ah, here is the related issue: rust-lang/unsafe-code-guidelines#188 So, given also that https://doc.rust-lang.org/reference/behavior-considered-undefined.html does not list "use-after-drop" or "use-after-move" as a form of UB in Rust, I think currently there is no bug in Miri here, so I am inclined to close this. |
rust-lang/unsafe-code-guidelines#188 does seem exactly on point... so your inclination seems right to me. |
I was surprised when miri failed to catch this, I'm not sure if it might just be considered out of scope for now?
The text was updated successfully, but these errors were encountered: