summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaCodeComplete.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-05-20 19:24:12 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-05-20 19:24:12 +0000
commitac8bc12cd15fd677565a79b7877890aceb74069a (patch)
tree546c4117f825dc9116b4d974671eee6d86740dd2 /clang/lib/Sema/SemaCodeComplete.cpp
parent91f1d247363ee1fbc567a0dbea94bc6bfd76db02 (diff)
downloadbcm5719-llvm-ac8bc12cd15fd677565a79b7877890aceb74069a.tar.gz
bcm5719-llvm-ac8bc12cd15fd677565a79b7877890aceb74069a.zip
Add asserts in StringRef to make sure we avoid undefined behavior:
-strlen should not be called with NULL. Also guarantee that StringRef's Length is 0 if Data is NULL. -memcmp should not be called with NULL (even if size is 0) Patch by Matthieu Monrocq! llvm-svn: 131747
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud