You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c90a631
Browse filesBrowse the repository at this point in the historyBrowse files
The flow/candidate passes only ever treated `new X()` as acquiring an owned
disposable, so a stream opened by a factory (`var s = File.OpenRead(path)`) was
invisible and the leak arm of ownership-handoff-consume scored a miss. New
IsOwningFactory recognises ownership-transferring factory calls off the resolved
symbol against a curated System.IO.File set (Open*/Create*/*Text), wired into the
same two acquire points as `new`/pool. The existing escape/using/dispose logic
then applies unchanged.
Effect: Leak fires OWN001 (the `using var` fix stays clean), flipping the case to
caught -- recall 7/10 -> 8/10, specificity 10/10, 0 FP, CI floor --min-recall 8.
Curated + symbol-resolved = precision over recall; blast radius is exactly one
file. The use-after-handoff (OWN002) arm stays future (needs the inter-procedural
consume contract).
0 commit comments