Commit d98509b23 for imagemagick.org

commit d98509b23a547d9ccd0a8af8650d03c5c01c3722
Author: Cristy <urban-warrior@imagemagick.org>
Date:   Sun Sep 13 08:20:47 2026 -0400

    https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-58h4-rwr6-wj72

diff --git a/coders/ps.c b/coders/ps.c
index fbef571b2..0238db263 100644
--- a/coders/ps.c
+++ b/coders/ps.c
@@ -483,7 +483,7 @@ static void ReadPSInfo(const ImageInfo *image_info,Image *image,PSInfo *ps_info,
           {
             ps_info->photoshop_profile=AcquireProfileStringInfo("8bim",
               length+1U,exception);
-            if (ps_info->icc_profile != (StringInfo*) NULL)
+            if (ps_info->photoshop_profile != (StringInfo*) NULL)
               {
                 q=GetStringInfoDatum(ps_info->photoshop_profile);
                 while (extent > 0)