5 ms·
How Rust's memory safety can help to solve JIT generating bug code? BTW Chromium is testing rewriting critical parts in Rust (https://chromium.googlesource.com
by fancl20 4y ago
How Rust's memory safety can help to solve JIT generating bug code?
BTW Chromium is testing rewriting critical parts in Rust (https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/security/rust-toolchain.md https://chromium.googlesource.com/chromium/src/+/refs/heads/...)
- saagarjha 4y agoIt can’t, at least not directly. However, it can prevent bugs in the JIT runtime itself from being exploited.
- tester756 4y agoI said that turning off JIT with two a few clicks makes your browser significantly more secure Rust is an improvement to memory related issues
- anuraaga 4y agoRust seems to provide memory safety built-in that is still possible in C++ with appropriate linters / static analysis (e.g., don't ever assign a `new` pointer to anything other than a unique one). I remember Google's codebase generally being good on this, but does Chromium not follow that? My guess is yes and these are issues that would affect both languages equally, with Rust it just happens to be in an `unsafe` block.