additional sanity checks to reduce false positive detections.

This commit is contained in:
morkt
2015-07-09 06:53:55 +04:00
parent ea75aa558b
commit 919ef22202
3 changed files with 7 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ namespace GameRes.Formats.Circus
public override ArcFile TryOpen (ArcView file)
{
int count = file.View.ReadInt32 (0);
if (count <= 0 || count > 0xfffff)
if (count <= 1 || count > 0xfffff)
return null;
var dir = ReadIndex (file, count, 0x30);
if (null == dir)