Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 391 Bytes

returnAddressOfFunctionParameter.md

File metadata and controls

11 lines (6 loc) · 391 Bytes

Pattern: Address of function parameter returned

Issue: -

Description

Address of the function parameter becomes invalid after the function exits because function parameters are stored on the stack which is freed when the function exits. Thus the returned value is invalid.

Further Reading