Commit ff4df375e for imagemagick.org
commit ff4df375e0a4570bfd113b42831c9ab4e6c49ce7
Author: Cristy <urban-warrior@imagemagick.org>
Date: Tue Jun 30 19:48:00 2026 -0400
revert
diff --git a/coders/jnx.c b/coders/jnx.c
index 26dd93269..a2c173bd3 100644
--- a/coders/jnx.c
+++ b/coders/jnx.c
@@ -284,7 +284,7 @@ static Image *ReadJNXImage(const ImageInfo *image_info,ExceptionInfo *exception)
images=DestroyImageList(images);
ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile");
}
- if (HeapOverflowSanityCheckAddition(tile_length,2) != MagickFalse)
+ if (tile_length > (UINT_MAX-2))
{
images=DestroyImageList(images);
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");