Post
Unfortunately, there are often tradeoffs of lower portability (Rust), less straightforward APIs (sandboxing), and/or lower performance (managed languages). But some of us are willing to make those tradeoffs.
0 reposts1 like
Dropbox did this right I think. They wrote a brotli decompressor in a memory-safe langauge and sandboxed it. Granted, it takes effort to support platform-specific sandboxing capabilities, but isn't that worth the protection from vulnerabilities like these? dropbox.tech/infrastructu...
I have seriously considered writing a memory-safe Zstandard decompressor because otherwise a single bad upstream zstd bug could spell RCE for tens of thousands of my app users. Decompression libraries are the most significant reason I sandboxed Ina for Accrescent. lberrymage.dev/posts/ina-pa...