Commit 6987ef0a2 for imagemagick.org

commit 6987ef0a23c7e6fccd316ea46e18e45a7da2580e
Author: Cristy <urban-warrior@imagemagick.org>
Date:   Fri May 22 22:00:00 2026 -0400

    increase increment

diff --git a/coders/yuv.c b/coders/yuv.c
index 38814a7fd..01ef4d484 100644
--- a/coders/yuv.c
+++ b/coders/yuv.c
@@ -145,7 +145,7 @@ static Image *ReadYUVImage(const ImageInfo *image_info,ExceptionInfo *exception)
   image=AcquireImage(image_info,exception);
   if ((image->columns == 0) || (image->rows == 0))
     ThrowReaderException(OptionError,"MustSpecifyImageSize");
-  if (HeapOverflowSanityCheckGetSize(image->columns,4,&extent) != MagickFalse)
+  if (HeapOverflowSanityCheckGetSize(image->columns,4*image->depth/8,&extent) != MagickFalse)
     ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
   status=SetImageExtent(image,image->columns,image->rows,exception);
   if (status == MagickFalse)