...
| CERT C Secure Coding Standard | MSC00-C. Compile cleanly at high warning levels |
| CERT C++ Secure Coding Standard | DCL30EXP54-CPP. Declare objects with appropriate storage durationsDo not access an object outside of its lifetime |
| ISO/IEC TR 24772:2013 | Dangling References to Stack Frames [DCM] |
| ISO/IEC TS 17961 | Escaping of the address of an automatic object [addrescape] |
| MISRA C:2012 | Rule 18.6 (required) |
Bibliography
| [Coverity 2007] | |
| [ISO/IEC 9899:2011] | 6.2.4, "Storage Durations of Objects" |
...