Skip to content

Leak checker misses pointers cast to integer #1318

Closed
@RalfJung

Description

@RalfJung

The leak checker considers allocations live when they can still be reached from a static. However, this scan can only consider pointers that are still stored as pointer values (with provenance), not pointers cast to an integer (where provenance is lost).

This causes false positives, at least, for

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-intptrcastArea: affects int2ptr and ptr2int castsA-leaksArea: affects the memory leak checkerC-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions