Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 22d885d

Browse files
author
Nick Kledzik
committed
[Object] keep trailing '\0' out of StringRef when parsing mach-o bindings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217935 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 11903b5 commit 22d885d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Object/MachOObjectFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1957,9 +1957,9 @@ void MachOBindEntry::moveNext() {
19571957
while (*Ptr) {
19581958
++Ptr;
19591959
}
1960-
++Ptr;
19611960
SymbolName = StringRef(reinterpret_cast<const char*>(SymStart),
19621961
Ptr-SymStart);
1962+
++Ptr;
19631963
DEBUG_WITH_TYPE(
19641964
"mach-o-bind",
19651965
llvm::dbgs() << "BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM: "

0 commit comments

Comments
 (0)