mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 20:39:29 +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;
|
index_offset += 4;
|
||||||
}
|
}
|
||||||
if (0 == dir.Count)
|
if (0 == dir.Count || (file.MaxOffset - offset) > 0x80000)
|
||||||
return null;
|
return null;
|
||||||
DetectFileTypes (file, dir);
|
DetectFileTypes (file, dir);
|
||||||
return dir;
|
return dir;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user