[Bug middle-end/91205] -fstack-protector-strong -D_FORTIFY_SOURCE=2 breaks tftpd

2019-07-19 Thread ricardo at ribalda dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91205 --- Comment #5 from Ricardo Ribalda --- Thanks for the clarification! (And now, after using C/gcc daily for over 18 years I realise that I have no fucking clue about C and gcc :) )

[Bug middle-end/91205] -fstack-protector-strong -D_FORTIFY_SOURCE=2 breaks tftpd

2019-07-18 Thread ricardo at ribalda dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91205 --- Comment #3 from Ricardo Ribalda --- (and thanks for your fast response :) )

[Bug middle-end/91205] -fstack-protector-strong -D_FORTIFY_SOURCE=2 breaks tftpd

2019-07-18 Thread ricardo at ribalda dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91205 --- Comment #2 from Ricardo Ribalda --- Hi Jakub I can agree that I do not like the code style and I have already send a patch for that. On the other hand is a bit frustrating that mangling a bit the struct, or using memcpy is enough to make it

[Bug c/91205] New: -fstack-protector-strong -D_FORTIFY_SOURCE=2 breaks tftpd

2019-07-18 Thread ricardo at ribalda dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: ricardo at ribalda dot com Target Milestone: --- Current GNU inetutils tftpd breaks at runtime with current gcc (also tested with 8.3). The code throws a: *** buffer overflow detected