From 093a633516b200ceb035179df4d9941f627f5fbb Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 9 Oct 2018 14:41:40 +0400 Subject: [PATCH] (Types): filename sanity check. --- Legacy/Types/ArcARC.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Legacy/Types/ArcARC.cs b/Legacy/Types/ArcARC.cs index 969fc121..78c1b5fa 100644 --- a/Legacy/Types/ArcARC.cs +++ b/Legacy/Types/ArcARC.cs @@ -56,6 +56,8 @@ namespace GameRes.Formats.Types if (0 == name_length || name_length > 0x100) return null; var name = input.ReadCString (name_length); + if (string.IsNullOrWhiteSpace (name)) + return null; var entry = new Entry { Name = name, Offset = input.Position,