Extend -fstack-protector-strong to cover calls with return slot

Florian Weimer fweimer@redhat.com
Fri Jan 3 13:15:00 GMT 2014

This patch fixes a loophole in the -fstack-protector-strong protection. 
  If a function call uses the return slot optimization, the caller needs 
stack protector instrumentation because the return slot is addressable.

Bootstrapped and regression-tested on x86_64-redhat-linux-gnu, with 
C/C++/Java enabled.  Okay for trunk?

Florian Weimer / Red Hat Product Security Team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ssp-strong-nrv.patch
Type: text/x-patch
Size: 4221 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140103/f190b272/attachment.bin>

More information about the Gcc-patches mailing list