From 93f4cf163f45ec0c1a2891f640b17dabd9754297 Mon Sep 17 00:00:00 2001 From: morkt Date: Sat, 17 Nov 2018 00:45:37 +0400 Subject: [PATCH] (VCT): filename sanity check. --- Legacy/Unison/ArcVCT.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Legacy/Unison/ArcVCT.cs b/Legacy/Unison/ArcVCT.cs index 10f3ce39..103ccf9f 100644 --- a/Legacy/Unison/ArcVCT.cs +++ b/Legacy/Unison/ArcVCT.cs @@ -60,6 +60,8 @@ namespace GameRes.Formats.Unison for (int i = 0; i < count; ++i) { string name = file.View.ReadString (index_offset, 0x14).TrimEnd(); + if (string.IsNullOrWhiteSpace (name)) + return null; string ext = file.View.ReadString (index_offset+0x14, 3); if (!string.IsNullOrWhiteSpace (ext)) name += '.' + ext;