Skip to content

Commit

Permalink
Proper error handling for #156
Browse files Browse the repository at this point in the history
  • Loading branch information
d0k3 committed Mar 17, 2017
1 parent bf0700d commit c87c247
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 c87c247

Please sign in to comment.