Causes the compiler to detect some buffer overruns.
Linux: None
IA-32, Intel® EM64T
| Linux: | -fstack-security-check |
| -fno-stack-security-check | |
| Windows: | /GS |
| /GS- |
None
| /GS- | The compiler does not detect buffer overruns. |
| -fno-stack-security-check | The compiler does not detect buffer overruns. |
This option causes the compiler to detect some buffer overruns that overwrite the return address; this is a common technique for exploiting code that does not enforce buffer size restrictions. To use this option, you must also link with the Microsoft* 7.0 run-time support libraries.
None