Commit 063015909 for imagemagick.org
commit 06301590988fc62e17b4ae6e937d411cc1089ef1
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sat Apr 25 22:26:09 2026 -0400
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-7wff-wpr6-vmhm
diff --git a/coders/meta.c b/coders/meta.c
index 9def00d1d..3131bbaab 100644
--- a/coders/meta.c
+++ b/coders/meta.c
@@ -1759,7 +1759,7 @@ iptc_find:
info_length++;
tag_length|=(unsigned int) c;
}
- if (tag_length > (length+1))
+ if (tag_length > length)
break;
p+=(ptrdiff_t) tag_length;
length-=tag_length;