]> granicus.if.org Git - clang/commit
[Analyzer] Correct stack address escape diagnostic
authorSean Eveson <eveson.sean@gmail.com>
Thu, 26 May 2016 14:02:17 +0000 (14:02 +0000)
committerSean Eveson <eveson.sean@gmail.com>
Thu, 26 May 2016 14:02:17 +0000 (14:02 +0000)
commit2283ffcf11af4c631e52f47c539d65307f450598
tree116e87d3f9fd24da6751a467cba57bfab4155c78
parent1dcb4b9133fe4a2f370969ac64cef511e4feb135
[Analyzer] Correct stack address escape diagnostic

Summary:
Leaking a stack address via a static variable refers to it in the diagnostic as a 'global'. This patch corrects the diagnostic for static variables.

Patch by Phil Camp, SN Systems

Reviewers: dcoughlin, zaks.anna

Subscribers: xazax.hun, cfe-commits

Differential Revision: http://reviews.llvm.org/D19866

Patch by Phil Camp

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270849 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp
test/Analysis/stackaddrleak.c