https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115965
--- Comment #8 from Nathan Teodosio ---
Ah sorry, I got fixated in the different behavior when swapping the order and
didn't challenge the function.
Thank you Andrew for elaborating on that and on -fsanitize=address, that is
really appreciated!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115965
--- Comment #5 from Nathan Teodosio ---
In none of them. Or am I overlooking a buffer overrun here? Also with Clang I
get no stack smashing even with -fstack-protector-all.
In any case I fail to see why that would be dependent on which of the a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115965
--- Comment #2 from Nathan Teodosio ---
Created attachment 58691
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58691&action=edit
Source file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115965
--- Comment #1 from Nathan Teodosio ---
Created attachment 58690
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58690&action=edit
Preprocessed file (compressed with Gzip)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115965
Bug ID: 115965
Summary: Stack smashing depending on order of declaration
Product: gcc
Version: 14.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Componen