I think guidelines are poor ass method to improve security, especially when you can see that projects like Chromium still have a lot of mem. related safety.
I think guidelines are poor ass method to improve security, especially when you can see that projects like Chromium still have a lot of mem. related safety.
Chrome might suffer from being a Google project. At least the old Google C++ style guides heavily pushed a C with classes approach and where outright hostile to every improvement over C new versions of the language brought along.
When you have restrictive conventions, it is easier for a new dev to get onboard, as well as for creating static analysis tools.
I don’t have access to CVEs on crbug.com but the top two from https://chromereleases.googleblog.com/2023/01/stable-channel... are a use-after-free and buffer overflow reported months ago, which is the kind of stuff that modern C++ tries to avoid using containers and smart pointers with RAII.