3 ms·
> What we need is for compilers to start calling `abort` by default on any kind of integer overflow GCC supports this for C and C++, but it's off by default. I
by MaxBarraclough 7y ago
> What we need is for compilers to start calling `abort` by default on any kind of integer overflow
GCC supports this for C and C++, but it's off by default. I don't know if any distros build with this flag (-ftrapv) enabled. Seems like a good idea.
https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html
https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.h...