diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-08-04 03:48:26 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-08-04 03:48:26 +0000 |
commit | 7771197955dd06dd1b9f9653fa731e9ec9060b83 (patch) | |
tree | 5a7fcd341f4ca58cd502bf583da1c2787190e407 /clang/tools/c-index-test/c-index-test.c | |
parent | 3874ee6869e47fe714d98d8771bc09970a1076e2 (diff) | |
download | bcm5719-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