Blame SOURCES/ImageMagick6-terminate-loop-on-sentinel.patch
|
rdobuilder |
27f2ed |
From 15c5b01124557ccca9a619bd435d91ecd73659d3 Mon Sep 17 00:00:00 2001
|
|
rdobuilder |
27f2ed |
From: Cristy <urban-warrior@imagemagick.org>
|
|
rdobuilder |
27f2ed |
Date: Mon, 13 Mar 2023 07:42:46 -0400
|
|
rdobuilder |
27f2ed |
Subject: [PATCH] terminate loop on page sentinel
|
|
rdobuilder |
27f2ed |
(#https://github.com/ImageMagick/ImageMagick/issues/6158)
|
|
rdobuilder |
27f2ed |
|
|
rdobuilder |
27f2ed |
---
|
|
rdobuilder |
27f2ed |
magick/geometry.c | 2 ++
|
|
rdobuilder |
27f2ed |
1 file changed, 2 insertions(+)
|
|
rdobuilder |
27f2ed |
|
|
rdobuilder |
27f2ed |
diff --git a/magick/geometry.c b/magick/geometry.c
|
|
rdobuilder |
27f2ed |
index 6af9a36957..4a0c24eed9 100644
|
|
rdobuilder |
27f2ed |
--- a/magick/geometry.c
|
|
rdobuilder |
27f2ed |
+++ b/magick/geometry.c
|
|
rdobuilder |
27f2ed |
@@ -492,6 +492,8 @@ MagickExport char *GetPageGeometry(const char *page_geometry)
|
|
rdobuilder |
27f2ed |
int
|
|
rdobuilder |
27f2ed |
status;
|
|
rdobuilder |
27f2ed |
|
|
rdobuilder |
27f2ed |
+ if (Pagesizes[i].extent == 0)
|
|
rdobuilder |
27f2ed |
+ break; /* sentinel */
|
|
rdobuilder |
27f2ed |
status=LocaleNCompare(Pagesizes[i].name,page_geometry,Pagesizes[i].extent);
|
|
rdobuilder |
27f2ed |
if (status == 0)
|
|
rdobuilder |
27f2ed |
{
|