CWE-562

Return of Stack Variable Address

A function returns the address of a stack variable, which will cause unintended program behavior, typically in the form of a crash.

Mitigation

Phase: Testing

Description:

  • Use static analysis tools to spot return of the address of a stack variable.

No CAPEC attack patterns related to this CWE.

Back to CWE stats page