Referring to 'self' after a call to [super dealloc] is a use-after-free in Objective-C because NSObject's -dealloc frees the memory pointed to by self. This patch extends the ObjCSuperDeallocChecker to catch this error.
rdar://problem/6953275
Paths
| Differential D17528
[analyzer] Warn on use of 'self' after call to to [super dealloc]. ClosedPublic Authored by dcoughlin on Feb 22 2016, 3:47 PM.
Details Summary Referring to 'self' after a call to [super dealloc] is a use-after-free in Objective-C because NSObject's -dealloc frees the memory pointed to by self. This patch extends the ObjCSuperDeallocChecker to catch this error. rdar://problem/6953275
Diff Detail Event Timeline
Closed by commit rL261935: [analyzer] Warn on use of 'self' after call to to [super dealloc]. (authored by dcoughlin). · Explain WhyFeb 25 2016, 3:41 PM This revision was automatically updated to reflect the committed changes. dcoughlin marked an inline comment as done.
Revision Contents
Diff 48747 lib/StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp
test/Analysis/DeallocUseAfterFreeErrors.m
|
Does "has been freed" sound better?