llvm-project/clang/lib/StaticAnalyzer/Frontend
Anna Zaks 17f57b0a00 [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.

llvm-svn: 147732
2012-01-07 16:49:46 +00:00
..
AnalysisConsumer.cpp [analyzer] Fix use-after-free in HandleTranslationUnit. 2012-01-07 16:49:46 +00:00
AnalysisConsumer.h Rename Diagnostic to DiagnosticsEngine as per issue 5397 2011-09-25 23:23:43 +00:00
CMakeLists.txt Fix cmake build with -DBUILD_SHARED_LIBS=ON. 2011-12-29 04:31:59 +00:00
CheckerRegistration.cpp Rename Diagnostic to DiagnosticsEngine as per issue 5397 2011-09-25 23:23:43 +00:00
FrontendActions.cpp [analyzer] Overhaul of checker registration in preparation for basic plugin support. Removes support for checker groups (we can add them back in later if we decide they are still useful), and -analyzer-checker-help output is a little worse for the time being (no packages). 2011-08-16 21:24:21 +00:00
Makefile When building StaticAnalyzer/Frontend add -I "<Checkers build dir>" to allow Checkers.inc to be 2011-02-17 18:40:33 +00:00