Skip to content

atexit uses a fixed-size array with no concurrency/recursion protection #49

@braindigitalis

Description

@braindigitalis

The handler stack is a global fixed array with no locking. If atexit() can be called concurrently, or if an atexit handler calls atexit(), behaviour is undefined.
Impact: potential memory corruption or unexpected handler ordering, depending on call patterns.

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