"A function can return a pointer to memory that is outside of the buffer that the pointer is expected to reference." - Entry from the Common Weakness Enumeration
For more info visit <a href="https://cwe.mitre.org/data/definitions/466.html" target="_blank" rel="noopener noreferrer">CWE-466</a>