-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Zero sized DST struct item causes invalid free #23491
Comments
cc @nrc |
@nrc it appears to have been fixed, this example doesn't crash in my local branch (assuming it's not something else I've done since). |
I have added 2 tests based on @talchas example, one using the
Shouldn't they both behave similar in this case? |
@fhahn's test with |
seems to result in a call to
foo::heap::exchange_free(1, 0, 1)
in the drop glue (and no allocates), which results in a crash. Just doingBox<[isize]>
works, as do non-empty input arrays.The text was updated successfully, but these errors were encountered: