Determines whether the compiler generates code that detects some buffer overruns.
Windows: Code Generation > Buffer Security Check
Linux: None
Mac OS X: None
IA-32, Intel® 64 architectures
Linux and Mac OS X: | -fstack-security-check -fno-stack-security-check |
Windows: | /GS /GS- |
None
-fno-stack-security-check |
The compiler does not detect buffer overruns. |
This option determines whether the compiler generates code that detects some buffer overruns that overwrite the return address. This is a common technique for exploiting code that does not enforce buffer size restrictions.
The /GS option is supported with Microsoft Visual Studio .NET 2003* and Microsoft Visual Studio 2005*.
Linux and Mac OS X: -f[no-]stack-protector
Windows: None
Copyright © 1996-2011, Intel Corporation. All rights reserved.