mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
additional sanity checks.
This commit is contained in:
@@ -107,6 +107,8 @@ namespace GameRes.Formats.KAAS
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
if (!file.Name.EndsWith (".pb", StringComparison.InvariantCultureIgnoreCase))
|
||||
return null;
|
||||
int count = file.View.ReadInt32 (0);
|
||||
if (count <= 0 || count > 0xfff)
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user