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

Keep track of whether memory is allocated by Rust's allocator #745

Open
keram88 opened this issue Jul 7, 2021 · 0 comments
Open

Keep track of whether memory is allocated by Rust's allocator #745

keram88 opened this issue Jul 7, 2021 · 0 comments
Assignees

Comments

@keram88
Copy link
Contributor

keram88 commented Jul 7, 2021

SMACK should be able to check if Rust's allocator is used on memory originating from a different allocator. For example, a pointer from C allocated with malloc may be obtained through Rust's FFI. It should be an error to then use Rust's dealloc function to free this memory since it cannot be guaranteed that they originate from the same allocator.

@keram88 keram88 self-assigned this Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant