(Ail): additional sanity check.

This commit is contained in:
morkt 2018-08-31 06:12:19 +04:00
parent 32235a3fea
commit 984f2eb592

View File

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