mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-06-08 15:37:13 +02:00
Make sure we can write jpeg files with an exif profile that has a length of 65533.
This commit is contained in:
+1
-1
@@ -2217,7 +2217,7 @@ static void WriteProfiles(j_compress_ptr jpeg_info,Image *image,
|
||||
jpeg_write_marker(jpeg_info,marker,GetStringInfoDatum(profile)+i,
|
||||
MagickMin((unsigned int) length-i,65533L));
|
||||
}
|
||||
if ((LocaleCompare(name,"EXIF") == 0) && (length < 65533L))
|
||||
if (LocaleCompare(name,"EXIF") == 0)
|
||||
{
|
||||
if (length > 65533L)
|
||||
(void) ThrowMagickException(exception,GetMagickModule(),CoderWarning,
|
||||
|
||||
Reference in New Issue
Block a user