Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Stack addresses (source) may be assigned to non-local variables #37

Description

@szsam

https://github.com/symisc/PH7/blob/c9cde8652331559a3e470b42d9705a56f73aaa31/ph7.c#L38377-L38392
The address of local variable result is assigned to non-local variables pA->pNext and pB->pNext.
Storing the address of a local variable in non-local memory can cause a dangling pointer bug if the address is used after the function returns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions