(WARC): additional entry name sanity check.

This commit is contained in:
morkt 2018-10-30 23:53:39 +04:00
parent 30a8e741e7
commit c48cc58483

View File

@ -143,7 +143,7 @@ namespace GameRes.Formats.ShiinaRio // 椎名里緒
entry.IsPacked = entry.Size != entry.UnpackedSize;
entry.FileTime = header.ReadInt64();
entry.Flags = header.ReadUInt32();
if (0 != name.Length && unique_names.Add (name))
if (0 != name.Length && name_buf[0] < 0x80 && unique_names.Add (name))
dir.Add (entry);
}
if (0 == dir.Count)