]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 17 Mar 2013 20:55:22 +0000 (20:55 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 17 Mar 2013 20:55:22 +0000 (20:55 +0000)
coders/tiff.c

index c77f9f83b39fcff80d8fc66db2faab8a8611ed6e..190ffa5f226ccb280483d60043eea6f1b95853bd 100644 (file)
@@ -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(