From 3d4b74e34a45f07931f716008c2d1079fca731e2 Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 12 Apr 2015 23:01:45 +0400 Subject: [PATCH] additional check to avoid false positives. --- ArcFormats/ArcKAAS.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArcFormats/ArcKAAS.cs b/ArcFormats/ArcKAAS.cs index 11d72463..7223964b 100644 --- a/ArcFormats/ArcKAAS.cs +++ b/ArcFormats/ArcKAAS.cs @@ -52,6 +52,8 @@ namespace GameRes.Formats.KAAS return null; int key = file.View.ReadByte (1); int count = 0xfff & file.View.ReadUInt16 (index_offset); + if (0 == count) + return null; index_offset += 16; byte[] index = new byte[count*8];