Fix region range check on ISO file

This commit is contained in:
digant73 2026-04-19 16:19:51 +02:00
parent bd5c10fd48
commit b8d54ca41d

View file

@ -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;