From 0c94cdb24bc8c98d39cdbe53a91b674796c10e92 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 15 Nov 2026 08:47:23 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Skip=20gump=20entries=20with=20n?= =?UTF-8?q?o=20data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An index entry with a valid lookup but zero size copied the entire rest of the gump file into memory before decoding garbage. --- MulProvider/UGumpProvider.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MulProvider/UGumpProvider.pas b/MulProvider/UGumpProvider.pas index 856e412..b5bb54e 100644 --- a/MulProvider/UGumpProvider.pas +++ b/MulProvider/UGumpProvider.pas @@ -45,7 +45,7 @@ implementation function TGumpProvider.GetData(AID: Integer; AIndex: TGenericIndex): TMulBlock; begin - if AIndex.Lookup <> LongInt($FFFFFFFF) then + if (AIndex.Lookup > -1) and (AIndex.Size > 0) then Result := TGump.Create(FData, TGumpIndex(AIndex)) else Result := TGump.Create(0, 0);