(XP3): addional entry sanity check.

This commit is contained in:
morkt 2017-03-17 15:59:30 +04:00
parent 4e5b299f6a
commit dffbf92272

View File

@ -201,6 +201,10 @@ namespace GameRes.Formats.KiriKiri
} }
if (filename_map.Count > 0) if (filename_map.Count > 0)
name = filename_map.Get (entry.Hash, name); name = filename_map.Get (entry.Hash, name);
if (name.Length > 0x100)
{
goto NextEntry;
}
entry.Name = name; entry.Name = name;
entry.Type = FormatCatalog.Instance.GetTypeFromName (name); entry.Type = FormatCatalog.Instance.GetTypeFromName (name);
entry.IsEncrypted = !(entry.Cipher is NoCrypt) entry.IsEncrypted = !(entry.Cipher is NoCrypt)