...
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
Related Guidelines
CERT C++ Secure Coding Standard | DCL30-CPP. Declare objects with appropriate storage durations |
ISO/IEC TR 24772 | Dangling references to stack frames [DCM] |
ISO/IEC TS 17961 (Draft) | Escaping of the address of an automatic object [addrescape] |
MISRA-C | Rule 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" |
...