aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/ELFObjectWriter.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
commit6d5502eb4966fb2f81fe951d0acf11cfa5cd4acf (patch)
tree5982645c94efdfc95064ae37c960327071fc24db /lib/MC/ELFObjectWriter.cpp
parent0e29ed081b24359978916b997e91e3e1e2293915 (diff)
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! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/ELFObjectWriter.cpp')
0 files changed, 0 insertions, 0 deletions