5 ms·
That's the first thing on the page. > Interviewer: “What happens if you allocate memory with C’s malloc and try to free it with Rust’s dealloc, if you get a po
by hyperbrainer 1y ago
That's the first thing on the page.
> Interviewer: “What happens if you allocate memory with C’s malloc and try to free it with Rust’s dealloc, if you get a pointer to the memory from C?”
> Me: “If we do it via FFI then there’s a possibility the program may continue working (because the underlying structs share the same memory layout? right? …right?)”
- sesm 1y agoThat's fair. Personally, I've skipped that entire pre-section thinking it's a long quote from some book.