|
|
|
|
|
by pcwalton
2408 days ago
|
|
Browsers are not "20-year-old C libraries". These issues are every bit as much of problems in C++. In fact, there is a reasonable argument that modern C++ is less safe than old C++, because of features like lambdas that practically invite use-after-free. |
|
It reports a total of 37 issues in:
In that list were also Skia and libsass, two projects actually written in C++.In Sass, the issue is a nullptr issue: https://github.com/sass/libsass/issues/3001
In Skia the bug was in intrinsics code: https://skia.googlesource.com/skia/+/0f55db539032a23b52897ae...
Of course that's a single data point, but it shows what I think is a reasonable argument: most of the issues indeed happen in (old) C code, for well-known reasons (no standard string, array or collection support, no RAII), but because C++ supports those things by default it largely avoids those issues.