]> granicus.if.org Git - clang/commit
[UB] Guard two calls to memcpy in generated attribute code to handle
authorChandler Carruth <chandlerc@gmail.com>
Tue, 4 Aug 2015 03:53:01 +0000 (03:53 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 4 Aug 2015 03:53:01 +0000 (03:53 +0000)
commit49ebe63bb6b31fd653ede4a5b8a8c74b082f433a
tree1bd3f5e846bdaf115d61635db868a7f46c35a8ca
parent35ae9a517d04331485e95059bd154c4a9932b482
[UB] Guard two calls to memcpy in generated attribute code to handle
null StringRef objects as inputs.

Found by UBSan.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243949 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/ClangAttrEmitter.cpp