From: cristy Date: Sun, 17 Mar 2013 20:55:22 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4062 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c69823fee547b701e224c83b994bde5fc65602a;p=imagemagick --- diff --git a/coders/tiff.c b/coders/tiff.c index c77f9f83b..190ffa5f2 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -2472,6 +2472,11 @@ static void TIFFSetProfiles(TIFF *tiff,Image *image) for (name=GetNextImageProfile(image); name != (const char *) NULL; ) { profile=GetImageProfile(image,name); + if (GetStringInfoLength(profile) == 0) + { + name=GetNextImageProfile(image); + continue; + } #if defined(TIFFTAG_XMLPACKET) if (LocaleCompare(name,"xmp") == 0) (void) TIFFSetField(tiff,TIFFTAG_XMLPACKET,(uint32) GetStringInfoLength(