]> granicus.if.org Git - clang/commit
Fix memory corruption in CStringChecker
authorPavel Labath <labath@google.com>
Wed, 12 Jun 2013 07:45:04 +0000 (07:45 +0000)
committerPavel Labath <labath@google.com>
Wed, 12 Jun 2013 07:45:04 +0000 (07:45 +0000)
commit3b8f77d09d0fe9af717bd89b7407d81d18557d71
tree30a4ec224636251a0e70e47809383b38ff4fa628
parent0934e18b620ecaa6c7ec18ba5c4286b6122d6fb8
Fix memory corruption in CStringChecker

Summary:
"register" functions for the checker were caching the checker objects in a
static variable. This caused problems when the function is called with a
different CheckerManager.

Reviewers: klimek

CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D955

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183823 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/CStringChecker.cpp