...
Do not attempt to access an object outside of its lifetime. Attempting to do so is undefined behavior and can lead to an exploitable vulnerability. (see See also undefined behavior 9 in the C Standard, Annex J.).
Noncompliant Code Example (Differing Storage Durations)
...