Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The most popular software in question is also a giant pile of C++, btw.


Are you familiar with the rule of two?

https://chromium.googlesource.com/chromium/src/+/main/docs/s...

No new code goes in that violates the rule, and ideally no code at all goes in that is both unsafe and parses untrusted data (regardless of sandboxing) and old code doing both gets replaced.

A giant pile of C++ can be used for rendering, not parsing untrusted data. A giant pile of C++ can sit behind a validator: a memory-safe JSON validator can vet a stream, before an C++ library deserializes it. Etc.


What are you saying here?



Communicate. What are you trying to say with these links and insinuations?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: