|
From: Tom H. <to...@co...> - 2015-01-02 00:05:34
|
On 01/01/15 23:16, "João M. S. Silva" wrote: > The problem is in: > > char command[128]; > sprintf(command, "first part of command %s second part of command", > filename.c_str()); > > The string is larger than 128 bytes. But valgrind does not detect this? > Am I missing something? No. Stack overruns are not detected because there is no guard space between stack variables like there is between heap variables. Tom -- Tom Hughes (to...@co...) http://compton.nu/ |