]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 29 Jul 2018 22:48:44 +0000 (18:48 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 29 Jul 2018 22:48:44 +0000 (18:48 -0400)
coders/psd.c
coders/svg.c

index 4f9cf71804d1732b6e5cb7f343ad25c06795ab93..afe1d1aef3a039a483c0726f8ddf75e2b34f5468 100644 (file)
@@ -1162,7 +1162,7 @@ static MagickBooleanType ReadPSDChannelRLE(Image *image,const PSDInfo *psd_info,
     if ((MagickOffsetType) length < sizes[y])
       length=(size_t) sizes[y];
 
-  if (length > (row_size+512)) // arbitrary number
+  if (length > (row_size+512)) /* arbitrary number */
     {
       pixels=(unsigned char *) RelinquishMagickMemory(pixels);
       ThrowBinaryException(ResourceLimitError,"InvalidLength",image->filename);
@@ -1304,10 +1304,12 @@ static MagickBooleanType ReadPSDChannelZip(Image *image,const size_t channels,
               p[2]+=p[0]+((p[1]+p[3]) >> 8);
               p[3]+=p[1];
             }
-          // else if (packet_size == 4)
-          //   {
-          //     TODO: Figure out what to do there.
-          //   }
+          /*
+          else if (packet_size == 4)
+             {
+               TODO: Figure out what to do there.
+             }
+          */
           else
             *(p+1)+=*p;
           p+=packet_size;
index 67ec9ba78df1060ba3832953071bfd69fdda9ce8..2332f59d12da26799e1caf5526f1813f0b5f44fa 100644 (file)
@@ -869,6 +869,16 @@ static void SVGProcessStyleElement(void *context,const xmlChar *name,
           }
         break;
       }
+      case 'M':
+      case 'm':
+      {
+        if (LocaleCompare(keyword,"mask") == 0)
+          {
+            (void) FormatLocaleFile(svg_info->file,"mask \"%s\"\n",value);
+            break;
+          }
+        break;
+      }
       case 'O':
       case 'o':
       {