Commit 5d29c0940 for imagemagick.org
commit 5d29c094020612dc8fb471b10fc1d1cc6e9e4378
Author: Dirk Lemstra <dirk@lemstra.org>
Date: Thu Aug 27 21:37:42 2026 +0200
Corrected the call to CheckPrimitiveExtent to fix the use of uninitialized heap memory (GHSA-6xf5-c3jx-rp39)
diff --git a/MagickCore/draw.c b/MagickCore/draw.c
index 18e96b100..ab0ba38d3 100644
--- a/MagickCore/draw.c
+++ b/MagickCore/draw.c
@@ -4300,8 +4300,8 @@ static MagickBooleanType RenderMVGContent(Image *image,
break;
}
mvg_info.offset=i;
- status&=(MagickStatusType) CheckPrimitiveExtent(&mvg_info,(double)
- number_points);
+ status&=CheckPrimitiveExtent(&mvg_info,(double) number_points+
+ (double) coordinates+1.0);
primitive_info=(*mvg_info.primitive_info);
if (status == MagickFalse)
break;