diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-03-20 23:10:12 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-03-20 23:10:12 +0000 |
commit | 08af4e56e13e432afcdb46f07837abd4836e422d (patch) | |
tree | 6aa96ef8dd3e2a3c422846e3805ef4086470750b /clang/lib/Sema/TreeTransform.h | |
parent | 2aa29ee7c150994d5be4acf9d13a678d97f07816 (diff) | |
download | bcm5719-llvm-08af4e56e13e432afcdb46f07837abd4836e422d.tar.gz bcm5719-llvm-08af4e56e13e432afcdb46f07837abd4836e422d.zip |
[COFF] Don't call memcpy with a NULL argument
Some declarations of memcpy (like glibc's for example) are attributed
with notnull which makes it UB for NULL to get passed in, even if the
memcpy count is zero.
To account for this, guard the memcpy with an appropriate precondition.
This should fix the last UBSan bug, exposed by the test suite, in the
COFF linker.
llvm-svn: 263919
Diffstat (limited to 'clang/lib/Sema/TreeTransform.h')
0 files changed, 0 insertions, 0 deletions