Fix error

This commit is contained in:
rthomas 2020-10-10 11:01:05 +02:00
parent 2e65a94b7c
commit d6753b17c5
2 changed files with 2 additions and 2 deletions

View File

@ -476,7 +476,7 @@ def print_dyld_info(binary):
print("{:10}: {}".format("Library", binfo.library.name))
if binfo.binding_class == lief.MachO.BINDING_CLASS.LAZY:
print("{:10}: {}".format("Offset", binfo.offset))
print("{:10}: {}".format("Offset", binfo.original_offset))
print("")

View File

@ -1370,7 +1370,7 @@ void BinaryParser::parse_dyldinfo_lazy_bind() {
is_weak_import,
false,
segments, start_offset);
start_offset = this->stream_->pos() - offset;
start_offset = this->stream_->pos() - offset + 1;
segment_offset += sizeof(pint_t);
break;
}