mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-06 13:48:57 +08:00
(Ail): additional sanity check.
This commit is contained in:
@@ -95,7 +95,7 @@ namespace GameRes.Formats.Ail
|
||||
}
|
||||
index_offset += 4;
|
||||
}
|
||||
if (0 == dir.Count)
|
||||
if (0 == dir.Count || (file.MaxOffset - offset) > 0x80000)
|
||||
return null;
|
||||
DetectFileTypes (file, dir);
|
||||
return dir;
|
||||
|
||||
Reference in New Issue
Block a user