OcMachoLib: Bugfix for using a wrong segment size.

This commit is contained in:
Download-Fritz 2018-10-19 14:59:15 +02:00
parent a3241dbde4
commit d4b592967f

View File

@ -120,7 +120,7 @@ MachoGetLastAddress64 (
Segment != NULL;
Segment = MachoGetNextSegment64 (Context, Segment)
) {
Address = (Segment->VirtualAddress + Segment->Hdr.Size);
Address = (Segment->VirtualAddress + Segment->Size);
if (Address > LastAddress) {
LastAddress = Address;