...
Attempting to access an object outside of its lifetime can result in undefined behavior and lead to an exploitable vulnerability. (See also undefined behavior 9 of in Appendix J in of the C Standard.)
Noncompliant Code Example (Static Variables)
...