4 ms·
Will falliable allocations help eliminate these kinds of DoS vulnerabilities? AFAIK there's a proposal: https://rust-lang.github.io/rfcs/2116-alloc-me-maybe.ht
by curling_grad 4y ago
Will falliable allocations help eliminate these kinds of DoS vulnerabilities?
AFAIK there's a proposal: https://rust-lang.github.io/rfcs/2116-alloc-me-maybe.html https://rust-lang.github.io/rfcs/2116-alloc-me-maybe.html
- pornel 4y agoIt would be nice if Bytes used it: https://github.com/tokio-rs/bytes/pull/521 https://github.com/tokio-rs/bytes/pull/521 but that's not entirely sufficient. Even ignoring overcommit shenanigans of Linux, an ever-growing request can cause a lot of strain on the process or the OS before it finally makes allocations fail.