-
Notifications
You must be signed in to change notification settings - Fork 391
Closed
Labels
A-intptrcastArea: affects int2ptr and ptr2int castsArea: affects int2ptr and ptr2int castsA-leaksArea: affects the memory leak checkerArea: affects the memory leak checkerC-bugCategory: This is a bug.Category: This is a bug.
Description
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
- Windows
Mutex
(Enable leak checker on Windows #1302) - Any user of
AtomicPtr
Metadata
Metadata
Assignees
Labels
A-intptrcastArea: affects int2ptr and ptr2int castsArea: affects int2ptr and ptr2int castsA-leaksArea: affects the memory leak checkerArea: affects the memory leak checkerC-bugCategory: This is a bug.Category: This is a bug.