smack icon indicating copy to clipboard operation
smack copied to clipboard

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

Open keram88 opened this issue 3 years ago • 0 comments

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 avatar Jul 07 '21 21:07 keram88