Skip to content

Commit

Permalink
fix dynamic symbol resolver
Browse files Browse the repository at this point in the history
there was a case that target symbol cannot be resolved correctly
  • Loading branch information
sj-i committed May 7, 2020
1 parent 2f1ee7e commit c0abbd8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Lib/Elf/Structure/Elf64/Elf64GnuHashTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ public function lookup(string $name, callable $symbol_table_checker): int
return $chain_offset + $this->symoffset;
}
}
$chain_offset++;
} while (($this->chain[$chain_offset] & 1) === 0);
} while (($this->chain[$chain_offset++] & 1) === 0);

return Elf64SymbolTable::STN_UNDEF;
}
Expand Down

0 comments on commit c0abbd8

Please sign in to comment.