From dffbf9227213ea65f6a38f9db833a1666fe6e15b Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 17 Mar 2017 15:59:30 +0400 Subject: [PATCH] (XP3): addional entry sanity check. --- ArcFormats/KiriKiri/ArcXP3.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ArcFormats/KiriKiri/ArcXP3.cs b/ArcFormats/KiriKiri/ArcXP3.cs index 64649cbd..fd5b857f 100644 --- a/ArcFormats/KiriKiri/ArcXP3.cs +++ b/ArcFormats/KiriKiri/ArcXP3.cs @@ -201,6 +201,10 @@ namespace GameRes.Formats.KiriKiri } if (filename_map.Count > 0) name = filename_map.Get (entry.Hash, name); + if (name.Length > 0x100) + { + goto NextEntry; + } entry.Name = name; entry.Type = FormatCatalog.Instance.GetTypeFromName (name); entry.IsEncrypted = !(entry.Cipher is NoCrypt)