-qstackprotect

@PROCESS

None.

Purpose

Provides protection against malicious input data or programming errors that overwrite or corrupt the stack.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-nostackprotect----------------------.   
>>- -q--+-stackprotect----=----+-all--------+-+----------------><
                               '-size--=--N-'     

Defaults

-qnostackprotect

Parameters

all
Protects all procedures whether or not procedures have vulnerable objects. This option is not set by default.
size=N
Protects all procedures containing automatic objects with size greater than or equal to N bytes. The default size is 8 byteswhen -qstackprotect is enabled.

Usage

-qstackprotect generates extra code to protect procedures with vulnerable objects against stack corruption. The option is disabled by default because it can degrade runtime performance.

To generate code to protect all procedures with vulnerable objects, enter the following command:

xlf myprogram.f -qstackprotect=all

To generate code to protect procedures with objects of certain size, enter the following command with the size= parameter set to the object size indicated in bytes:

xlf myprogram.f -qstackprotect=size=8


Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us