diff options
author | Anna Zaks <ganna@apple.com> | 2012-01-07 16:49:46 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-01-07 16:49:46 +0000 |
commit | c5bdc556f6a65c677e0ed73f918c3000ecad33af (patch) | |
tree | c99b148111f86c64949f10b390905233c21e3cf3 /lib/CodeGen/CodeGenFunction.h | |
parent | 06284c1dc56caed19850bc3766c89f51763724c3 (diff) |
[analyzer] Fix use-after-free in HandleTranslationUnit.
A patch by Dmitri Gribenko!
The attached patch fixes a use-after-free in AnalysisConsumer::HandleTranslationUnit. The problem is that
BugReporter's destructor runs after AnalysisManager has been already
deleted. The fix introduces a scope to force correct destruction
order.
A crash happens only when reports have been added in AnalysisConsumer::HandleTranslationUnit's BugReporter. We don't have such checkers in clang so no test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
0 files changed, 0 insertions, 0 deletions