Commit e70837c50 for imagemagick.org
commit e70837c500cd4d3705f45ec903069731202fcaa1
Author: Dirk Lemstra <dirk@lemstra.org>
Date: Mon Jun 22 21:09:22 2026 +0200
Revert unnecessary patch for GHSA-93x9-jq8c-cwcc
diff --git a/coders/tim2.c b/coders/tim2.c
index c0bb7bf83..fc4a8f25f 100644
--- a/coders/tim2.c
+++ b/coders/tim2.c
@@ -520,9 +520,6 @@ static MagickBooleanType ReadTIM2ImageData(const ImageInfo *image_info,
*/
clut_size=MagickMax(header->clut_size,(size_t) (clut_depth/8)*
image->colors);
- if (clut_size > GetMaxMemoryRequest())
- ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",
- image_info->filename);
clut_data=(unsigned char *) AcquireQuantumMemory(clut_size,
sizeof(*clut_data));
if (clut_data == (unsigned char *) NULL)