Commit 5c4cca722 for imagemagick.org
commit 5c4cca722ac88c8ce60de063c51193650493b4c5
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sat Mar 21 09:45:53 2026 -0400
https://github.com/ImageMagick/ImageMagick/issues/8632
diff --git a/coders/miff.c b/coders/miff.c
index 1d5795299..190f5dbc4 100644
--- a/coders/miff.c
+++ b/coders/miff.c
@@ -610,6 +610,11 @@ static Image *ReadMIFFImage(const ImageInfo *image_info,
Get the keyword value.
*/
c=ReadBlobByte(image);
+ if (c == (int) '{')
+ {
+ *p++=c;
+ c=ReadBlobByte(image);
+ }
while ((c != (int) '{') && (c != (int) '}') && (c != EOF))
{
if ((size_t) (p-options+1) >= length)
diff --git a/coders/mpc.c b/coders/mpc.c
index fc77f0269..729e040fd 100644
--- a/coders/mpc.c
+++ b/coders/mpc.c
@@ -305,6 +305,11 @@ static Image *ReadMPCImage(const ImageInfo *image_info,ExceptionInfo *exception)
Get the keyword value.
*/
c=ReadBlobByte(image);
+ if (c == (int) '{')
+ {
+ *p++=c;
+ c=ReadBlobByte(image);
+ }
while ((c != (int) '{') && (c != (int) '}') && (c != EOF))
{
if ((size_t) (p-options+1) >= length)