From 5f9340c32bf9d3653d13ffd8b2f7c02746cacda6 Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 20 Oct 2023 18:13:19 +0400 Subject: [PATCH] (VF): addtional check for exe files. --- ArcFormats/LiveMaker/ArcVF.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArcFormats/LiveMaker/ArcVF.cs b/ArcFormats/LiveMaker/ArcVF.cs index 8bb78d2c..fd8e505d 100644 --- a/ArcFormats/LiveMaker/ArcVF.cs +++ b/ArcFormats/LiveMaker/ArcVF.cs @@ -66,6 +66,8 @@ namespace GameRes.Formats.LiveMaker && (0x5A4D == (signature & 0xFFFF))) // 'MZ' { base_offset = SkipExeData (index_file); + if (base_offset >= file.MaxOffset) + return null; signature = index_file.View.ReadUInt32 (base_offset); } else if (!file.Name.HasExtension (".dat"))