Re:What Is in a Rust Allocator?
by khuey on Tuesday May 07, 2024 @08:27AM
(#40284671)
Things like malloc_usable_size() exist but you're not supposed to use the overage it tells you about so they're not very useful APIs.
[ Parent
| on HN ]
Re:What Is in a Rust Allocator?
by darby_eight on Tuesday May 07, 2024 @08:59AM
(#40284927)
This can be instrumented by the compiler or more likely runtime to detect buffer overruns. Imperfectly of course if you share the page(s) with other allocations but it's worth considering.