]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/213
authorCristy <urban-warrior@imagemagick.org>
Sun, 5 Jun 2016 20:33:06 +0000 (16:33 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 5 Jun 2016 20:33:59 +0000 (16:33 -0400)
ChangeLog
coders/pes.c

index 6164e264144c5f0358f9caaac6390a0945764fff..cbe3802d45f5656f3a51bb0d2106e4379d8b5185 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,8 @@
     convert caption:@mytext.txt ...
   * RLE check for pixel offset less than 0 (heap overflow report from Craig
     Young).
+  * Properly initialze PES blocks (reference
+    https://github.com/ImageMagick/ImageMagick/issues/213).
 
 2016-06-03  7.0.1-9 Cristy  <quetzlzacatenango@image...>
   * Release ImageMagick version 7.0.1-9, GIT revision 10847:339f803:20160602.
index f18219ba92bac943fe57be3df203192b2f1229da..d05187fa2e4f112a18eedc94f3188dd14245abc0 100644 (file)
@@ -509,7 +509,10 @@ static Image *ReadPESImage(const ImageInfo *image_info,ExceptionInfo *exception)
     blocks[i].offset=0;
   }
   for ( ; i < 256L; i++)
+  {
     blocks[i].offset=0;
+    blocks[i].color=PESColor;
+  }
   if (DiscardBlobBytes(image,532L-number_colors-21) == MagickFalse)
     ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile",
       image->filename);
@@ -555,7 +558,7 @@ static Image *ReadPESImage(const ImageInfo *image_info,ExceptionInfo *exception)
           Normal stitch.
         */
         if ((x & 0x40) != 0)
-         x-=0x80;
+          x-=0x80;
       }
     else
       {