GraphicsMagick: ReadMIFFImage(): With depth == 32, the range of ...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.427.1679865860.1789.graphicsmagick-commit@lists.sourceforge.net>
changeset 63c1903547d7 in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=63c1903547d7
summary: ReadMIFFImage(): With depth == 32, the range of image->colors is 1 to 65536

diffstat:

 ChangeLog          |  5 +++++
 coders/miff.c      |  4 ++--
 www/Changelog.html |  7 +++++++
 3 files changed, 14 insertions(+), 2 deletions(-)

diffs (48 lines):

diff -r e997ee40a6f3 -r 63c1903547d7 ChangeLog
--- a/ChangeLog	Sun Mar 26 10:32:55 2023 -0500
+++ b/ChangeLog	Sun Mar 26 16:24:04 2023 -0500
@@ -1,3 +1,8 @@
+2023-03-26  Bob Friesenhahn  <[email protected]>
+
+	* coders/miff.c (ReadMIFFImage): With depth == 32, the range of
+	image->colors is 1 to 65536.
+
 2023-03-26  Fojtik Jaroslav  <[email protected]>
 
 	* magick/nt_base.h Improve compatibility witholder versions
diff -r e997ee40a6f3 -r 63c1903547d7 coders/miff.c
--- a/coders/miff.c	Sun Mar 26 10:32:55 2023 -0500
+++ b/coders/miff.c	Sun Mar 26 16:24:04 2023 -0500
@@ -1,5 +1,5 @@
 /*
-% Copyright (C) 2003-2022 GraphicsMagick Group
+% Copyright (C) 2003-2023 GraphicsMagick Group
 % Copyright (C) 2002 ImageMagick Studio
 % Copyright 1991-1999 E. I. du Pont de Nemours and Company
 %
@@ -1623,7 +1623,7 @@
         quantum_type=image->matte ? IndexAlphaQuantum : IndexQuantum;
         if (image->colors <= 256)
           quantum_size=8;
-        else if (image->colors <= 65535)
+        else if (image->colors <= 65536)
           quantum_size=16;
         else
           quantum_size=32;
diff -r e997ee40a6f3 -r 63c1903547d7 www/Changelog.html
--- a/www/Changelog.html	Sun Mar 26 10:32:55 2023 -0500
+++ b/www/Changelog.html	Sun Mar 26 16:24:04 2023 -0500
@@ -37,6 +37,13 @@
 </div>
 
 <div class="document">
+<p>2023-03-26  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/miff.c (ReadMIFFImage): With depth == 32, the range of
+image-&gt;colors is 1 to 65536.</p></li>
+</ul>
+</blockquote>
 <p>2023-03-26  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.