llvm-project/clang/tools/c-index-test
Chandler Carruth 6ac555fb71 [UB] Avoid a really broken call to realloc that would later result in
a bad call to memcpy.

When we only have a buffer from one of the two reparse calls, we can
just return that buffer rather than going through the realloc/memcpy
dance.

Found with UBsan.

llvm-svn: 243950
2015-08-04 03:53:04 +00:00
..
CMakeLists.txt Support LLVM_BUILD_STATIC. 2014-11-05 14:04:25 +00:00
Makefile Tweak libclang's users, c-arcmt-test, c-index-test and libclangTests to satisfy LDFLAGS=-static. 2015-07-12 12:17:55 +00:00
c-index-test.c [UB] Avoid a really broken call to realloc that would later result in 2015-08-04 03:53:04 +00:00