summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-08-04 03:48:26 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-08-04 03:48:26 +0000
commit7771197955dd06dd1b9f9653fa731e9ec9060b83 (patch)
tree5a7fcd341f4ca58cd502bf583da1c2787190e407 /clang/tools/c-index-test/c-index-test.c
parent3874ee6869e47fe714d98d8771bc09970a1076e2 (diff)
downloadbcm5719-llvm-7771197955dd06dd1b9f9653fa731e9ec9060b83.tar.gz
bcm5719-llvm-7771197955dd06dd1b9f9653fa731e9ec9060b83.zip
[UB] Don't allocate space for contained types and then try to copy the
contained types into the space when we have no contained types. This fixes the UB stemming from a call to memcpy with a null pointer. This also reduces the calls to allocate because this actually happens in a notable client - Clang. Found by UBSan. llvm-svn: 243944
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud