Skip to content

Commit

Permalink
Prevent too large CIA stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
d0k3 committed Mar 20, 2017
1 parent 3f5c6f3 commit dc121bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/decryptor/game.c
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ u32 ConvertSdToCia(u32 param)

// CIA stub
u32 stub_size = BuildCiaStubTmd(stub, tmd, tmd_size);
if (stub_size == 0) {
if ((stub_size == 0) || (stub_size > 0x4000)) {
Debug("Failed building the CIA stub");
continue;
}
Expand Down

0 comments on commit dc121bb

Please sign in to comment.