From e70251d304d086be02628ae46e3027200f91d5cf Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 25 Feb 2019 13:02:49 +0400 Subject: [PATCH] (DAT/SAKURA): additional sanity check. --- ArcFormats/StudioSakura/ArcDAT.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArcFormats/StudioSakura/ArcDAT.cs b/ArcFormats/StudioSakura/ArcDAT.cs index ff353a8c..e11a011b 100644 --- a/ArcFormats/StudioSakura/ArcDAT.cs +++ b/ArcFormats/StudioSakura/ArcDAT.cs @@ -52,6 +52,8 @@ namespace GameRes.Formats.StudioSakura for (int i = 0; i < count; ++i) { var name = file.View.ReadString (index_offset, 0x100); + if (string.IsNullOrWhiteSpace (name)) + return null; var entry = new PackedEntry(); entry.IsPacked = name.HasExtension (".pr3"); if (entry.IsPacked)