Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

Related Guidelines

CERT C++ Secure Coding StandardDCL30-CPP. Declare objects with appropriate storage durations
ISO/IEC TR 24772Dangling references to stack frames [DCM]
ISO/IEC TS 17961 (Draft)Escaping of the address of an automatic object [addrescape]
MISRA-CRule 8.6 (required): Functions shall be declared at file scope

Bibliography

[Coverity 2007] 
[ISO/IEC 9899:2011]Section 6.2.4, "Storage Durations of Objects"

...