This is an archive of the discontinued LLVM Phabricator instance.

[Static Analyzer] Remove ObjCContainersChecker size information when a CFMutableArrayRef escapes
AbandonedPublic

Authored by dcoughlin on Jun 3 2015, 3:17 PM.

Details

Summary

Update ObjCContainersChecker to be notified when pointers escape so it can remove size information for escaping CFMutableArrayRefs. When such pointers escape, un-analyzed code could mutate the array and cause the size information to be incorrect.

rdar://problem/19406485

Diff Detail

Event Timeline

dcoughlin updated this revision to Diff 27061.Jun 3 2015, 3:17 PM
dcoughlin retitled this revision from to [Static Analyzer] Remove ObjCContainersChecker size information when a CFMutableArrayRef escapes.
dcoughlin updated this object.
dcoughlin edited the test plan for this revision. (Show Details)
dcoughlin added reviewers: zaks.anna, jordan_rose.
dcoughlin added a subscriber: Unknown Object (MLST).
zaks.anna edited edge metadata.Jun 5 2015, 6:33 PM

LGTM! Please, commit.

This was committed in r239709.

dcoughlin abandoned this revision.Aug 7 2015, 6:56 PM