mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 20:04:13 +08:00
(XP3): addional entry sanity check.
This commit is contained in:
parent
4e5b299f6a
commit
dffbf92272
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user