mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcMachoLib: Fix address range check.
This commit is contained in:
parent
923cbb6bdb
commit
fbc5310bc9
@ -469,7 +469,7 @@ MachoGetSectionByAddress64 (
|
||||
Segment = MachoGetNextSegment64 (Context, Segment)
|
||||
) {
|
||||
if ((Address >= Segment->VirtualAddress)
|
||||
&& (Address < (Segment->VirtualAddress + Address >= Segment->FileSize))) {
|
||||
&& (Address < (Segment->VirtualAddress + Segment->Size))) {
|
||||
Section = &Segment->Sections[0];
|
||||
|
||||
for (Index = 0; Index < Segment->NumberOfSections; ++Index) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user