Versions Compared

Key

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

...

CERT C Secure Coding StandardMSC00-C. Compile cleanly at high warning levels 
CERT C++ Secure Coding StandardDCL30EXP54-CPP. Declare objects with appropriate storage durationsDo not access an object outside of its lifetime
ISO/IEC TR 24772:2013Dangling References to Stack Frames [DCM]
ISO/IEC TS 17961Escaping of the address of an automatic object [addrescape]
MISRA C:2012Rule 18.6 (required)

Bibliography

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

...