Commit 32bbfb10c for imagemagick.org
commit 32bbfb10c47c0247162a8a1b777b9b637d6b8425
Author: Cristy <urban-warrior@imagemagick.org>
Date: Wed Sep 2 21:37:33 2026 -0400
extra check not needed
diff --git a/MagickCore/cache.c b/MagickCore/cache.c
index 266f94cc0..5fbe6881c 100644
--- a/MagickCore/cache.c
+++ b/MagickCore/cache.c
@@ -5292,13 +5292,7 @@ static Quantum *SetPixelCacheNexusPixels(
/*
Pixels are stored in a staging region until they are synced to the cache.
*/
- if (CacheOverflowSanityCheckGetSize((MagickSizeType) width,height,&number_pixels) != MagickFalse)
- {
- (void) ThrowMagickException(exception,GetMagickModule(),
- ResourceLimitError,"MemoryAllocationFailed","`%s'",
- cache_info->filename);
- return((Quantum *) NULL);
- }
+ number_pixels=(MagickSizeType) width*height;
{
MagickSizeType
extent,