Re:Remote code execution vulnerability in SQLite
by cyan_pencil on Saturday December 15, 2018 @11:02AM
(#18688879)
There is ASAN, the address sanitizer.
You can enable it by passing some flags to gcc.
It will make your program crash as soon as there is an out of bounds read / undefined behaviour.
If debug symbols are enabled, it will also tell you which line of code was responsible.
It can save you countless hours of debugging
A thought: would it help to have a modified C compiler that would crash the app whenever UB was encountered? It might help find some bugs where non-default C compiler was used (which I assume happens, given the large amount of platforms sqlite supports). Or am I missing something?