clang-1/lib
Anna Zaks c5bdc556f6 [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
2012-01-07 16:49:46 +00:00
..
ARCMigrate Remove unused variables. 2011-12-25 01:18:52 +00:00
AST Switch NamespaceDecl from its own hand-rolled redeclaration chain over 2012-01-07 09:11:48 +00:00
Analysis Thread safety analysis: added support for trylock attribute. 2012-01-06 19:16:50 +00:00
Basic __FLT_EVAL_METHOD__ should be 1 on NetBSD/i386, since it defaults to 2012-01-06 18:32:26 +00:00
CodeGen Fixed TypeofExpr AST and code generation. 2012-01-07 10:52:36 +00:00
Driver Revert r147664; it's breaking clang regression tests. 2012-01-06 20:42:20 +00:00
Frontend When loading an AST file, set SourceManager::MainFileID to the main file of the AST file, 2012-01-05 21:36:25 +00:00
FrontendTool Per discussion on the list, remove BitcodeVerify pass to reimplement as a free function. 2011-12-14 00:29:23 +00:00
Headers Don't depend on undefined macros being 0, there are options for the 2012-01-03 19:22:38 +00:00
Index Replace all comparisons between ObjCInterfaceDecl pointers with calls 2011-12-15 00:29:59 +00:00
Lex When inferring a submodule ID during module creation, look up the 2012-01-06 17:19:32 +00:00
Parse Fixed TypeofExpr AST and code generation. 2012-01-07 10:52:36 +00:00
Rewrite Fix uninitialized variable warning. 2012-01-06 20:05:14 +00:00
Sema Fixed TypeofExpr AST and code generation. 2012-01-07 10:52:36 +00:00
Serialization Switch NamespaceDecl from its own hand-rolled redeclaration chain over 2012-01-07 09:11:48 +00:00
StaticAnalyzer [analyzer] Fix use-after-free in HandleTranslationUnit. 2012-01-07 16:49:46 +00:00
CMakeLists.txt The ARC Migration Tool. All the credit goes to Argyrios and Fariborz 2011-06-15 23:25:17 +00:00
Makefile The ARC Migration Tool. All the credit goes to Argyrios and Fariborz 2011-06-15 23:25:17 +00:00