[Bug c++/63489] stack allocated array pointer corrupted

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

[Bug c++/63489] stack allocated array pointer corrupted

2014-10-09 Thread jonathan.hogg at stfc dot ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63489 --- Comment #3 from Jonathan Hogg --- Confirmed, this is the cause is the larger example as well. I had missed the introduction of -fsanitize=address, useful feature. I'd assumed something like that valgrind would have picked up for me however!

[Bug c++/63489] stack allocated array pointer corrupted

2014-10-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63489 --- Comment #2 from Jonathan Wakely --- That was pretty easily found with -fsanitize=address

[Bug c++/63489] stack allocated array pointer corrupted

2014-10-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63489 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---