From 0ea84672d8fe33588c15b394a5f846182061dea8 Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 31 Jul 2016 18:58:46 +0400 Subject: [PATCH] (TcdOpener.OpenEntry): additional sanity check for script entries. --- ArcFormats/TopCat/ArcTCD3.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcFormats/TopCat/ArcTCD3.cs b/ArcFormats/TopCat/ArcTCD3.cs index 642dbca9..3652cb9b 100644 --- a/ArcFormats/TopCat/ArcTCD3.cs +++ b/ArcFormats/TopCat/ArcTCD3.cs @@ -254,7 +254,7 @@ namespace GameRes.Formats.TopCat } if (!spdc_entry && entry.Name.StartsWith ("TXT\\", StringComparison.InvariantCultureIgnoreCase) - && signature < 0x01000000) + && signature > 0 && signature < 0x01000000) return OpenScript (tcda, tcde, signature); } var rest = arc.File.CreateStream (entry.Offset+0x14, entry.Size-0x14);