User and Reference Guide for the Intel® C++ Compiler 14.0

fstack-security-check, GS

Determines whether the compiler generates code that detects some buffer overruns.

Syntax

Linux OS and OS X:

-fstack-security-check

-fno-stack-security-check

Windows OS:

/GS

/GS-

Arguments

None

Default

-fno-stack-security-check
or /GS-

The compiler does not detect buffer overruns.

Description

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.

IDE Equivalent

Windows: Code Generation > Buffer Security Check

Linux: None

OS X: None

Alternate Options

Linux and OS X: -f[no-]stack-protector

Windows: None


Submit feedback on this help topic