https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68069
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org --- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> --- I was going to confirm this but changed my mind. I don't think the test case qualifies as buffer overflow since it starts writing well past the end of the buffer, i.e., into an arbitrary address. Buffer overflow is called an overflow because it starts by writing into a buffer but proceeds writing past its end. It will always be possible to get around a stack canary by skipping over it.