Skip to content

Commit 7fcd48a

Browse files
committed
[Backtracing] Fix a symbol lookup bug.
We sometimes picked the wrong symbol because of this.
1 parent 19b6705 commit 7fcd48a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Backtracing/Elf.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ struct ElfSymbolTable<SomeElfTraits: ElfTraits>: ElfSymbolTableProtocol {
964964
nextValue = _symbols[mid + 1].value
965965
}
966966

967-
if symbol.value <= address && nextValue >= address {
967+
if symbol.value <= address && nextValue > address {
968968
var ndx = mid
969969
while ndx > 0 && _symbols[ndx - 1].value == address {
970970
ndx -= 1

0 commit comments

Comments
 (0)