From 5e601eaa4a9082bb3a4559b6b1920f81cc919aa1 Mon Sep 17 00:00:00 2001 From: nganhkhoa Date: Thu, 22 Aug 2024 17:38:16 +0700 Subject: [PATCH] fix serializer wrong size with addr field for LC_SEGMENT --- macho-go/pkg/ios/macho/lc_segment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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