4 ms·
This kind of technique could also be applied to the parts of Firefox built with Rust, correct?
by nwah1 7y ago
This kind of technique could also be applied to the parts of Firefox built with Rust, correct?
- rapsey 7y agoRust is memory safe. It does not need this treatment.
- azakai 7y agoIt would still be useful in that case as defense in depth. Specifically it could guard against compiler bugs, use of "unsafe", etc.
- stjohnswarts 7y agoIt could but Rust already solves the issues this is aiming to solve but with fewer steps. I don't know what Mozilla's policy is on adding Rust vs C++ for new features.
- cogman10 7y agoI somewhat disagree. Safe rust solves the memory safety problem. However, there is still the possibility of a logic bug causing rust to touch something it shouldn't. The sandbox approach is about adding a second level for malicious code to bypass. You now not only need to find a way to get past the code, you also need to find a way out of the sandbox. It's a little like running your apps on a server with highly restricted permissions. You do that so the app compromise limits what is exposed.