[Bug sanitizer/107696] GCC trunk misses a stack-buffer-overflow

2022-11-15 Thread shaohua.li at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107696 --- Comment #4 from Li Shaohua --- Thanks for the prompt reply.

[Bug sanitizer/107696] GCC trunk misses a stack-buffer-overflow

2022-11-15 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107696 --- Comment #3 from Martin Liška --- So here again depends on the order of stack variables and a[4] is a valid access to 'b' variable, see what happens with a[6]: = ==6539==ERROR:

[Bug sanitizer/107696] GCC trunk misses a stack-buffer-overflow

2022-11-15 Thread shaohua.li at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107696 --- Comment #2 from Li Shaohua --- (In reply to Martin Liška from comment #1) > > int i; > > int a[1]; > > for (; i < 1;){ > > This depends on the uninitialized value of 'i', which is: > > (gdb) p i > $1 = 32767 > > if I run it w

[Bug sanitizer/107696] GCC trunk misses a stack-buffer-overflow

2022-11-15 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107696 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---