Frederick Gotham
unread,Aug 19, 2020, 10:42:17 AM8/19/20You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
If I compile my program with the GNU compiler and the flag "-fstack-protector", it prints out the following:
*** stack smashing detected ***: <unknown> terminated
However if I compile my program with "-fno-stack-protector", then it runs fine and doesn't seem to malfunction in any way.
I have used "gdb" and "valgrind" on both versions of my program (the one with stack protection and the one without), and neither 'gdb' nor 'valgrind' can spot the problem.
Have any of you ever experienced a false positive from the GNU compiler's stack-smashing detector?