aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/CodeView/DebugCrossExSubsection.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 /llvm/lib/DebugInfo/CodeView/DebugCrossExSubsection.cpp
parentd454c73cc3085b151feb0935527174fba6d0ae91 (diff)
downloadllvm-ca5e153fb19286766f988ead99a26b9a2a9beea6.zip
llvm-ca5e153fb19286766f988ead99a26b9a2a9beea6.tar.gz
llvm-ca5e153fb19286766f988ead99a26b9a2a9beea6.tar.bz2
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 'llvm/lib/DebugInfo/CodeView/DebugCrossExSubsection.cpp')
0 files changed, 0 insertions, 0 deletions