From 0a35f9acf61041687a26018da0cbfb82569b37b0 Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 20 Oct 2015 15:15:08 +0400 Subject: [PATCH] (G24Format.ReadMetaData): fixed sanity check. --- ArcFormats/elf/ImageG24.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcFormats/elf/ImageG24.cs b/ArcFormats/elf/ImageG24.cs index 2492550b..80d31362 100644 --- a/ArcFormats/elf/ImageG24.cs +++ b/ArcFormats/elf/ImageG24.cs @@ -47,7 +47,7 @@ namespace GameRes.Formats.Elf int w = input.ReadInt16(); int h = input.ReadInt16(); if (w <= 0 || w > 0x1000 || h <= 0 || h > 0x1000 - || x < 0 || x > 0x800 || h < 0 || h > 0x800) + || x < 0 || x > 0x800 || y < 0 || y > 0x800) return null; return new ImageMetaData { Width = (uint)w,