2 ms·
Rust-the-language does not understand allocation, so it depends on the API that you give to whichever allocation functions. Rust's standard library aborts on O
by steveklabnik 11y ago
Rust-the-language does not understand allocation, so it depends on the API that you give to whichever allocation functions.
Rust's standard library aborts on OOM.
- viraptor 11y agoThat's what I meant - if you go through actual allocators, then of course such bug can exist. As you say <<the needed feature to mitigate this specific vulnerability is "throws exception on malloc failure">>. But it seems to me like any language providing resizable buffers with bound checking in standard library is unlikely to get code like this in the first place. And that's a massive scope reduction.