Having an incorrect type for a cast causes the checker to incorrectly dismiss the operation under ARC, leading to a false positive use-after-release on the test.
rdar://47709885
Paths
| Differential D57557
[analyzer] [RetainCountChecker] Fix object type for CF/Obj-C bridged casts ClosedPublic Authored by george.karpenkov on Jan 31 2019, 5:30 PM.
Details Summary Having an incorrect type for a cast causes the checker to incorrectly dismiss the operation under ARC, leading to a false positive use-after-release on the test. rdar://47709885
Diff Detail Event TimelineHerald added subscribers: dkrupp, donat.nagy, Szelethus and 5 others. · View Herald TranscriptJan 31 2019, 5:30 PM This revision is now accepted and ready to land.Jan 31 2019, 5:39 PM Closed by commit rC352824: [analyzer] [RetainCountChecker] Fix object type for CF/Obj-C bridged casts (authored by george.karpenkov). · Explain WhyJan 31 2019, 6:12 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 184653 clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp
clang/test/Analysis/objc-arc.m
|