Re:Why is modern web development so complicated?
by MaxBarraclough on Monday August 12, 2019 @05:31PM
(#20680248)
In C++'s defence, the language itself doesn't mandate any protections here (the famous 'undefined behaviour'), but there's no reason your compiler can't add automatic runtime checking against illegal use of null. GCC supports it with "-fsanitize=null" [0]
[0] https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.h...