Skip to content

Commit 67ce019

Browse files
committed
Forgot to check the ROM size before adding the padding.
1 parent 41db876 commit 67ce019

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/arm11/open_agb_firm.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ static u32 fixRomPadding(const u32 romFileSize)
6969
}
7070

7171
// Fake "open bus" padding.
72-
makeOpenBusPaddingFast((u32*)(romLoc + mirroredSize));
72+
if(romSize < LGY_MAX_ROM_SIZE)
73+
makeOpenBusPaddingFast((u32*)(romLoc + mirroredSize));
7374

7475
// We don't return the mirrored size because the db hashes are over unmirrored dumps.
7576
return romSize;

0 commit comments

Comments
 (0)