From 984f2eb592c54f951813befd2e3f7aaa94761ca1 Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 31 Aug 2018 06:12:19 +0400 Subject: [PATCH] (Ail): additional sanity check. --- ArcFormats/Ail/ArcAil.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcFormats/Ail/ArcAil.cs b/ArcFormats/Ail/ArcAil.cs index fdedc1b3..bba68433 100644 --- a/ArcFormats/Ail/ArcAil.cs +++ b/ArcFormats/Ail/ArcAil.cs @@ -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;