diff --git a/macho-go/pkg/ios/macho/lc_segment.go b/macho-go/pkg/ios/macho/lc_segment.go index 96632e9..46967f2 100644 --- a/macho-go/pkg/ios/macho/lc_segment.go +++ b/macho-go/pkg/ios/macho/lc_segment.go @@ -190,7 +190,7 @@ func (lcmd *Segment64) Vmaddr() uint64 { return lcmd.vmaddr } func (lcmd *Segment64) Vmsize() uint64 { - return lcmd.vmaddr + return lcmd.vmsize } func (lcmd *Segment64) Fileoff() uint64 { return lcmd.fileoff