-
Notifications
You must be signed in to change notification settings - Fork 320
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
Memory-reusing custom allocator fails in miri #3666
Comments
This is a copy-and-paste of my reply on this issue from 2 days ago: #3657 This is not a false positive. The ranges printed by the diagnostics are exclusive on the end, like Rust ranges. Alternatively if you mean you think that Stacked Borrows should be changed to accept this code, that's part of what Tree Borrows is for. Set I'm closing this because it is not a bug in Miri (which essentially does not have false positives), but I don't want to discourage you from asking further questions about this situation or diagnostic. |
Miri flags the following code of a custom allocator that caches allocation as UB. I think it isn't, although I am not 100% sure.
The error message is
The text was updated successfully, but these errors were encountered: