GraphicsMagick: TIFFReadErrors(): Mask "Internal error, unknown ...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.1706.1686157436.9958.graphicsmagick-commit@lists.sourceforge.net>
changeset b74667257bad in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=b74667257bad
summary: TIFFReadErrors(): Mask "Internal error, unknown tag" errors from TIFFFieldWithTag() which block working with anything but development libtiff.

diffstat:

 ChangeLog                              |  6 ++++++
 VisualMagick/installer/inc/version.isx |  4 ++--
 coders/tiff.c                          |  5 +++--
 magick/version.h                       |  4 ++--
 www/Changelog.html                     |  8 ++++++++
 5 files changed, 21 insertions(+), 6 deletions(-)

diffs (79 lines):

diff -r d289dcd23b05 -r b74667257bad ChangeLog
--- a/ChangeLog	Sun Jun 04 14:41:53 2023 -0500
+++ b/ChangeLog	Wed Jun 07 12:03:43 2023 -0500
@@ -1,3 +1,9 @@
+2023-06-07  Bob Friesenhahn  <[email protected]>
+
+	* coders/tiff.c (TIFFReadErrors): Mask "Internal error, unknown
+	tag" errors from TIFFFieldWithTag() which block working with
+	anything but development libtiff.
+
 2023-06-04  Fojtik Jaroslav  <[email protected]>
 
 	* coders/topol.c: More strict check of proper blob data size.
diff -r d289dcd23b05 -r b74667257bad VisualMagick/installer/inc/version.isx
--- a/VisualMagick/installer/inc/version.isx	Sun Jun 04 14:41:53 2023 -0500
+++ b/VisualMagick/installer/inc/version.isx	Wed Jun 07 12:03:43 2023 -0500
@@ -10,5 +10,5 @@
 
 #define public MagickPackageName "GraphicsMagick"
 #define public MagickPackageVersion "1.4"
-#define public MagickPackageVersionAddendum ".020230604"
-#define public MagickPackageReleaseDate "snapshot-20230604"
+#define public MagickPackageVersionAddendum ".020230607"
+#define public MagickPackageReleaseDate "snapshot-20230607"
diff -r d289dcd23b05 -r b74667257bad coders/tiff.c
--- a/coders/tiff.c	Sun Jun 04 14:41:53 2023 -0500
+++ b/coders/tiff.c	Wed Jun 07 12:03:43 2023 -0500
@@ -944,6 +944,9 @@
   errno=0;
   (void) vsnprintf(message,MaxTextExtent-2,format,warning);
   message[MaxTextExtent-2]='\0';
+#define UNKNOWN_TAG_ERROR "Internal error, unknown tag"
+  if (LocaleNCompare(message,UNKNOWN_TAG_ERROR,sizeof(UNKNOWN_TAG_ERROR)-1) == 0)
+    return;
   (void) strlcat(message,".",MaxTextExtent);
   tiff_exception=(ExceptionInfo *) MagickTsdGetSpecific(tsd_key);
   ThrowException2(tiff_exception,CorruptImageError,message,module);
@@ -2356,9 +2359,7 @@
              { TIFFTAG_MODEL, "model" },
              { TIFFTAG_PAGENAME, "label" },
              { TIFFTAG_SOFTWARE, "software" },
-#if 0
              { TIFFTAG_OPIIMAGEID, "imageid" }, /* Causes TIFFFieldWithTag() to return NULL */
-#endif
              { 33423, "kodak-33423" },
              { 36867, "kodak-36867" }
             };
diff -r d289dcd23b05 -r b74667257bad magick/version.h
--- a/magick/version.h	Sun Jun 04 14:41:53 2023 -0500
+++ b/magick/version.h	Wed Jun 07 12:03:43 2023 -0500
@@ -38,8 +38,8 @@
 #define MagickLibVersion  0x272402
 #define MagickLibVersionText  "1.4"
 #define MagickLibVersionNumber 27,24,2
-#define MagickChangeDate   "20230604"
-#define MagickReleaseDate  "snapshot-20230604"
+#define MagickChangeDate   "20230607"
+#define MagickReleaseDate  "snapshot-20230607"
 
 /*
   The MagickLibInterfaceNewest and MagickLibInterfaceOldest defines
diff -r d289dcd23b05 -r b74667257bad www/Changelog.html
--- a/www/Changelog.html	Sun Jun 04 14:41:53 2023 -0500
+++ b/www/Changelog.html	Wed Jun 07 12:03:43 2023 -0500
@@ -37,6 +37,14 @@
 </div>
 
 <div class="document">
+<p>2023-06-07  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/tiff.c (TIFFReadErrors): Mask &quot;Internal error, unknown
+tag&quot; errors from TIFFFieldWithTag() which block working with
+anything but development libtiff.</p></li>
+</ul>
+</blockquote>
 <p>2023-06-04  Fojtik Jaroslav  &lt;<a class="reference external" href="mailto:JaFojtik&#37;&#52;&#48;yandex&#46;com">JaFojtik<span>&#64;</span>yandex<span>&#46;</span>com</a>&gt;</p>
 <blockquote>
 <ul class="simple">
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.