• R/O
  • SSH

GM: Commit

Main GraphicsMagick source repository


Commit MetaInfo

Revisiona45a3d5e77aefbbbd184ba9d93dceaceb4885a18 (tree)
Time2022-01-17 05:46:19
AuthorBob Friesenhahn <bfriesen@Grap...>
CommiterBob Friesenhahn

Log Message

ReadMIFFImage(): Do not proceed to next image in sequence unless the character read is the expected 'i' character.

Change Summary

Incremental Difference

diff -r 743f1bcf3052 -r a45a3d5e77ae ChangeLog
--- a/ChangeLog Sun Jan 16 11:57:59 2022 -0600
+++ b/ChangeLog Sun Jan 16 14:46:19 2022 -0600
@@ -1,5 +1,10 @@
11 2022-01-16 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
22
3+ * coders/miff.c (ReadMIFFImage): Do not proceed to next image in
4+ sequence unless the character read is the expected 'i' character.
5+ Inspired by GraphicsMagick bug #659 "Can not escape $0 in a batch
6+ command".
7+
38 * coders/heif.c (ReadHEIFImage): Take row stride into account when
49 reading pixel rows. Add support for 'ping' mode. Add header magic
510 detection. Add module aliases. Add useful traces.
diff -r 743f1bcf3052 -r a45a3d5e77ae coders/miff.c
--- a/coders/miff.c Sun Jan 16 11:57:59 2022 -0600
+++ b/coders/miff.c Sun Jan 16 14:46:19 2022 -0600
@@ -2007,7 +2007,7 @@
20072007 {
20082008 c=ReadBlobByte(image);
20092009 } while (!isgraph(c) && (c != EOF));
2010- if (c != EOF)
2010+ if (c != EOF && ((c == 'i') || (c == 'I')))
20112011 {
20122012 /*
20132013 Allocate next image structure.
@@ -2025,7 +2025,7 @@
20252025 if (status == MagickFail)
20262026 break;
20272027 }
2028- } while (c != EOF);
2028+ } while (c != EOF && ((c == 'i') || (c == 'I')));
20292029 while (image->previous != (Image *) NULL)
20302030 image=image->previous;
20312031 CloseBlob(image);
diff -r 743f1bcf3052 -r a45a3d5e77ae www/Changelog.html
--- a/www/Changelog.html Sun Jan 16 11:57:59 2022 -0600
+++ b/www/Changelog.html Sun Jan 16 14:46:19 2022 -0600
@@ -37,9 +37,14 @@
3737
3838 <p>2022-01-16 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>
3939 <blockquote>
40-* coders/heif.c (ReadHEIFImage): Take row stride into account when
40+<p>* coders/miff.c (ReadMIFFImage): Do not proceed to next image in
41+sequence unless the character read is the expected 'i' character.
42+Inspired by GraphicsMagick bug #659 &quot;Can not escape $0 in a batch
43+command&quot;.</p>
44+<p>* coders/heif.c (ReadHEIFImage): Take row stride into account when
4145 reading pixel rows. Add support for 'ping' mode. Add header magic
42-detection. Add module aliases. Add useful traces.</blockquote>
46+detection. Add module aliases. Add useful traces.</p>
47+</blockquote>
4348 <p>2022-01-15 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>
4449 <blockquote>
4550 <p>* coders/jxl.c: Added preliminary JPEG XL support written by
Show on old repository browser