mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(Ail): additional sanity check.
This commit is contained in:
parent
32235a3fea
commit
984f2eb592
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user