summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-06-17 00:24:44 +0000
committerTed Kremenek <kremenek@apple.com>2010-06-17 00:24:44 +0000
commit17504bea33ed22cebfaf398e3a8f7ce97924c062 (patch)
tree3d332fcf502817086e3892f91e13e679d2f499fd /llvm/docs
parent648ef7a2d7a1ba993a207be4354edd83d0b92c42 (diff)
downloadbcm5719-llvm-17504bea33ed22cebfaf398e3a8f7ce97924c062.tar.gz
bcm5719-llvm-17504bea33ed22cebfaf398e3a8f7ce97924c062.zip
Rework StackAddrLeakChecker to find stores of stack memory addresses to global variables
by inspecting the Store bindings instead of iterating over all the global variables in a translation unit. By looking at the store directly, we avoid cases where we cannot directly load from the global variable, such as an array (which can result in an assertion failure) and it also catches cases where we store stack addresses to non-scalar globals. Also, but not iterating over all the globals in the translation unit, we maintain cache locality, and the complexity of the checker becomes restricted to the complexity of the analyzed function, and doesn't scale with the size of the translation unit. This fixes PR 7383. llvm-svn: 106184
Diffstat (limited to 'llvm/docs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud