Skip to content
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

Unsafe memory deallocations #2

Open
Daniel-Liu-c0deb0t opened this issue Jan 8, 2021 · 0 comments
Open

Unsafe memory deallocations #2

Daniel-Liu-c0deb0t opened this issue Jan 8, 2021 · 0 comments

Comments

@Daniel-Liu-c0deb0t
Copy link
Owner

Deallocations of manually allocated memory that is over-aligned is undefined behavior since Rust requires deallocations to have the exact same layout as the corresponding allocations. This happens when manually allocated memory is wrapped using a Vec.

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

1 participant