3 ms·valgrind is your friend!by cozzyd 5y agovalgrind is your friend!benibela 5y agoThat does not really work for stack variablesrenox 5y agoThere is ASAN https://github.com/google/sanitizers/wiki/AddressSanitizer https://github.com/google/sanitizers/wiki/AddressSanitizer which may work for stack variable though.