summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorStephane Sezer <sas@cd80.net>2017-06-05 17:44:04 +0000
committerStephane Sezer <sas@cd80.net>2017-06-05 17:44:04 +0000
commitca5e153fb19286766f988ead99a26b9a2a9beea6 (patch)
tree776e115e1f059e8cf400106434b38177d19b1eb9 /clang/lib/Basic/SourceManager.cpp
parentd454c73cc3085b151feb0935527174fba6d0ae91 (diff)
downloadbcm5719-llvm-ca5e153fb19286766f988ead99a26b9a2a9beea6.tar.gz
bcm5719-llvm-ca5e153fb19286766f988ead99a26b9a2a9beea6.zip
Avoid invalid string access in ObjCLanguage::MethodName::SetName
Summary: Don't access `name[1] if the string is only of length 1. Avoids a crash/assertion failure when parsing the string `-`. Test Plan: Debug a swift binary, set a breakpoint, watch lldb not crash Original change by Paul Menage <menage@fb.com> Reviewers: lldb-commits, clayborg Differential Revision: https://reviews.llvm.org/D33853 llvm-svn: 304725
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud