mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-29 23:41:12 -06:00
Fix region range check on ISO file
This commit is contained in:
parent
06a6880c6c
commit
b6c8374aa5
@ -199,7 +199,7 @@ bool iso_file_decryption::init(const std::string& path)
|
||||
const u32 region_count = char_arr_BE_to_uint(sec0_sec1.data());
|
||||
|
||||
// Ensure the region count is a proper value
|
||||
if (region_count < 1 || region_count > 31) // It's non-PS3ISO
|
||||
if (region_count < 1 || region_count > 127) // It's non-PS3ISO
|
||||
{
|
||||
iso_log.error("init: Failed to read region information: '%s' (region_count=%d)", path, region_count);
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user