4 ms·
the default valgrind engine, memcheck, is a heap checker and doesn't find stack overruns. In valgrind 3.7.0, you can use the experimental engine exp-sgcheck to
by peapicker 7y ago
the default valgrind engine, memcheck, is a heap checker and doesn't find stack overruns.
In valgrind 3.7.0, you can use the experimental engine exp-sgcheck to look for stack and global overruns. ( valgrind command line parameter --tool=exp-sgcheck ). It is experimental and doesn't always work, but might have in this case.