From 5ea59a1a3efdbcad4d9fe96e9a3a6b84b2c09368 Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 3 Aug 2016 15:13:46 +0400 Subject: [PATCH] (AnimOpener): fixed sanity check. --- ArcFormats/Marble/VideoANIM.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcFormats/Marble/VideoANIM.cs b/ArcFormats/Marble/VideoANIM.cs index a373e4a9..9aa244d1 100644 --- a/ArcFormats/Marble/VideoANIM.cs +++ b/ArcFormats/Marble/VideoANIM.cs @@ -58,7 +58,7 @@ namespace GameRes.Formats.Marble uint audio_offset = file.View.ReadUInt32 (0x14); if (audio_size > 0) { - if (audio_offset >= file.MaxOffset || audio_size >= file.MaxOffset - audio_offset) + if (audio_offset >= file.MaxOffset || audio_size > file.MaxOffset - audio_offset) return null; } int table_offset = 0x18 + count * 6;