Skip to content

Commit

Permalink
Check not actually needed
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraWright authored and TuxSH committed Jun 2, 2017
1 parent dc4fc51 commit bfebb2a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion stage2/arm9/source/firm.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ u32 checkFirmHeader(Firm *firmHeader, u32 firmBufferAddr, bool isPreLockout)
if((section->offset < 0x200) ||
(section->address + section->size < section->address) || //Overflow check
((u32)section->address & 3) || (section->offset & 0x1FF) || (section->size & 0x1FF) || //Alignment check
(overlaps((u32)section->address, (u32)section->address + section->size, (u32)firmHeader, (u32)firmHeader + 0x200)) ||
(overlaps((u32)section->address, (u32)section->address + section->size, firmBufferAddr, firmBufferAddr + size)) ||
((!inRange((u32)section->address, (u32)section->address + section->size, 0x08000000, 0x08000000 + 0x00100000)) &&
(!inRange((u32)section->address, (u32)section->address + section->size, 0x18000000, 0x18000000 + 0x00600000)) &&
Expand Down

0 comments on commit bfebb2a

Please sign in to comment.