From 4c69823fee547b701e224c83b994bde5fc65602a Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 17 Mar 2013 20:55:22 +0000 Subject: [PATCH] --- coders/tiff.c | 5 +++++ 1 file changed, 5 insertions(+) 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( -- 2.40.0