Developer Guide and Reference

Contents

fstack-protector

Enables or disables stack overflow security checks for certain (or all) routines.

Syntax

Linux:
-fstack-protector
[
-keyword
]
-fno-stack-protector
[
-keyword
]
macOS:
-fstack-protector
[
-keyword
]
-fno-stack-protector
[
-keyword
]
Windows:
None
Arguments
keyword
Possible values are:
strong
When option
-fstack-protector-strong
is specified, it enables stack overflow security checks for routines with any type of buffer.
all
When option
-fstack-protector-all
is specified, it enables stack overflow security checks for every routine.
If no
-keyword
is specified, option
-fstack-protector
enables stack overflow security checks for routines with a string buffer.
Default
-fno-stack-protector
,
-fno-stack-protector-strong
No stack overflow security checks are enabled for the relevant routines.