oss-sec mailing list archives

Re: GCC Compiler Induced Vulnerability - affects programs compiled with GCC 7 and 8 containing nested functions


From: Yann Droneaud <ydroneaud () opteya com>
Date: Tue, 23 Oct 2018 11:41:13 +0200

Hi,

Use -Werror=trampoline to prevent GCC from generating code that require
executable stack:


https://gcc.gnu.org/onlinedocs/gcc-8.2.0/gcc/Warning-Options.html#index-Wtrampolines

It's a recommanded warning from OWASP:


https://www.owasp.org/index.php/C-Based_Toolchain_Hardening#GCC.2FBinutils

-- 
Yann Droneaud
OPTEYA



Current thread: