summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/AliasAnalysisEvaluator.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-02-23 01:05:27 +0000
committerAnna Zaks <ganna@apple.com>2012-02-23 01:05:27 +0000
commit07de9c12f398d65d124cf1bdc0c9465a7d944e47 (patch)
tree122ebe83f19e7f0b1a1aca4334c6453d78e32ab8 /llvm/lib/Analysis/AliasAnalysisEvaluator.cpp
parent8634d73e17cfab25cc77f9dc6d80bb84724a2dc7 (diff)
downloadbcm5719-llvm-07de9c12f398d65d124cf1bdc0c9465a7d944e47.tar.gz
bcm5719-llvm-07de9c12f398d65d124cf1bdc0c9465a7d944e47.zip
[analyzer] Invalidate the region passed to pthread_setspecific() call.
Make this call an exception in ExprEngine::invalidateArguments: 'int pthread_setspecific(ptheread_key k, const void *)' stores a value into thread local storage. The value can later be retrieved with 'void *ptheread_getspecific(pthread_key)'. So even thought the parameter is 'const void *', the region escapes through the call. (Here we just blacklist the call in the ExprEngine's default logic. Another option would be to add a checker which evaluates the call and triggers the call to invalidate regions.) Teach the Malloc Checker, which treats all system calls as safe about the API. llvm-svn: 151220
Diffstat (limited to 'llvm/lib/Analysis/AliasAnalysisEvaluator.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud