From c48cc58483df49ba85d5319ce72770c3182069e4 Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 30 Oct 2018 23:53:39 +0400 Subject: [PATCH] (WARC): additional entry name sanity check. --- ArcFormats/ShiinaRio/ArcWARC.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcFormats/ShiinaRio/ArcWARC.cs b/ArcFormats/ShiinaRio/ArcWARC.cs index 5c088056..abdce5c9 100644 --- a/ArcFormats/ShiinaRio/ArcWARC.cs +++ b/ArcFormats/ShiinaRio/ArcWARC.cs @@ -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)