llvm-project/clang/unittests/Analysis
Alexander Kornienko 973fcc25fb Fix use-after-free bug in Tooling.
Summary:
`buildASTFromCodeWithArgs()` was creating a memory buffer referencing a
stack-allocated string.  This diff changes the implementation to copy the code
string into the memory buffer so that said buffer owns the memory.

Patch by Yitzhak Mandelbaum.

Reviewers: alexfh

Reviewed By: alexfh

Subscribers: cfe-commits, EricWF

Differential Revision: https://reviews.llvm.org/D55765

llvm-svn: 350638
2019-01-08 16:55:13 +00:00
..
CFGTest.cpp [analyzer] Fix crash when building CFG with variable of incomplete type 2017-03-07 08:42:37 +00:00
CMakeLists.txt Add explicit dependency on clangSerialization for a bunch of components to fix -DBUILD_SHARED_LIBS=on build 2018-12-12 08:02:18 +00:00
CloneDetectionTest.cpp [analyzer] Performance optimizations for the CloneChecker 2017-08-31 07:10:46 +00:00
ExprMutationAnalyzerTest.cpp Fix use-after-free bug in Tooling. 2019-01-08 16:55:13 +00:00