1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

[Object] keep trailing '\0' out of StringRef when parsing mach-o bindings

llvm-svn: 217935
This commit is contained in:
Nick Kledzik 2014-09-17 01:51:43 +00:00
parent c7d20aed03
commit 1cd062c7e5

View File

@ -1957,9 +1957,9 @@ void MachOBindEntry::moveNext() {
while (*Ptr) {
++Ptr;
}
++Ptr;
SymbolName = StringRef(reinterpret_cast<const char*>(SymStart),
Ptr-SymStart);
++Ptr;
DEBUG_WITH_TYPE(
"mach-o-bind",
llvm::dbgs() << "BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM: "