GraphicsMagick: HEIF: ReadMetadata() Also guard against profile ...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.22289.1669304017.1567.graphicsmagick-commit@lists.sourceforge.net>
changeset aa9d9744674a in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=aa9d9744674a
summary: HEIF: ReadMetadata() Also guard against profile name being null.

diffstat:

 ChangeLog                              |  5 +++++
 VisualMagick/installer/inc/version.isx |  4 ++--
 coders/heif.c                          |  2 +-
 magick/version.h                       |  4 ++--
 www/Changelog.html                     |  7 +++++++
 5 files changed, 17 insertions(+), 5 deletions(-)

diffs (66 lines):

diff -r b695fceb72ad -r aa9d9744674a ChangeLog
--- a/ChangeLog	Sun Nov 20 18:39:55 2022 -0600
+++ b/ChangeLog	Thu Nov 24 09:33:26 2022 -0600
@@ -1,3 +1,8 @@
+2022-11-24  Bob Friesenhahn  <[email protected]>
+
+	* coders/heif.c (ReadMetadata): Also guard against profile name
+	being null.
+
 2022-11-20  Bob Friesenhahn  <[email protected]>
 
 	* coders/wpg.c (ReadWPGImage): Fix wrong use of
diff -r b695fceb72ad -r aa9d9744674a VisualMagick/installer/inc/version.isx
--- a/VisualMagick/installer/inc/version.isx	Sun Nov 20 18:39:55 2022 -0600
+++ b/VisualMagick/installer/inc/version.isx	Thu Nov 24 09:33:26 2022 -0600
@@ -10,5 +10,5 @@
 
 #define public MagickPackageName "GraphicsMagick"
 #define public MagickPackageVersion "1.4"
-#define public MagickPackageVersionAddendum ".020221120"
-#define public MagickPackageReleaseDate "snapshot-20221120"
+#define public MagickPackageVersionAddendum ".020221124"
+#define public MagickPackageReleaseDate "snapshot-20221124"
diff -r b695fceb72ad -r aa9d9744674a coders/heif.c
--- a/coders/heif.c	Sun Nov 20 18:39:55 2022 -0600
+++ b/coders/heif.c	Thu Nov 24 09:33:26 2022 -0600
@@ -193,7 +193,7 @@
                               content_type ? content_type : "(null)",
                               (MAGICK_SIZE_T) profile_size);
 
-      if (profile_size > 0)
+      if (NULL != profile_name && profile_size > 0)
         {
           /* Allocate memory for profile */
           profile=MagickAllocateResourceLimitedArray(unsigned char*,profile_size,
diff -r b695fceb72ad -r aa9d9744674a magick/version.h
--- a/magick/version.h	Sun Nov 20 18:39:55 2022 -0600
+++ b/magick/version.h	Thu Nov 24 09:33:26 2022 -0600
@@ -38,8 +38,8 @@
 #define MagickLibVersion  0x272400
 #define MagickLibVersionText  "1.4"
 #define MagickLibVersionNumber 27,24,0
-#define MagickChangeDate   "20221120"
-#define MagickReleaseDate  "snapshot-20221120"
+#define MagickChangeDate   "20221124"
+#define MagickReleaseDate  "snapshot-20221124"
 
 /*
   The MagickLibInterfaceNewest and MagickLibInterfaceOldest defines
diff -r b695fceb72ad -r aa9d9744674a www/Changelog.html
--- a/www/Changelog.html	Sun Nov 20 18:39:55 2022 -0600
+++ b/www/Changelog.html	Thu Nov 24 09:33:26 2022 -0600
@@ -37,6 +37,13 @@
 </div>
 
 <div class="document">
+<p>2022-11-24  Bob Friesenhahn  &lt;<a class="reference external" href="mailto:bfriesen&#37;&#52;&#48;simple&#46;dallas&#46;tx&#46;us">bfriesen<span>&#64;</span>simple<span>&#46;</span>dallas<span>&#46;</span>tx<span>&#46;</span>us</a>&gt;</p>
+<blockquote>
+<ul class="simple">
+<li><p>coders/heif.c (ReadMetadata): Also guard against profile name
+being null.</p></li>
+</ul>
+</blockquote>
 <p>2022-11-20  Bob Friesenhahn  &lt;<a class="reference external" href="mailto:bfriesen&#37;&#52;&#48;simple&#46;dallas&#46;tx&#46;us">bfriesen<span>&#64;</span>simple<span>&#46;</span>dallas<span>&#46;</span>tx<span>&#46;</span>us</a>&gt;</p>
 <blockquote>
 <ul>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.