Show: Delphi C++
Display Preferences

StackAddressEscape

From RAD Studio
Jump to: navigation, search

Go Up to C++ Audits

Description

Checks that addresses to stack memory do not escape the function.

Checks whether an invalid stack address is stored into a global or heap location.

For example, this can happens if you are using objects declared with appropriate storage durations.

An object has a storage duration that determines its lifetime. There are three storage durations: static, automatic, and allocated. Attempting to access an object outside of its lifetime can result in undefined behavior.

See Also

Personal tools
RAD Studio 10.2 Tokyo
In other languages
Previous Versions
Assistance