https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63489 --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- I think valgrind only checks heap memory, so doesn't help for buffer overflows on the stack.