]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 8 May 2010 13:36:57 +0000 (13:36 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 8 May 2010 13:36:57 +0000 (13:36 +0000)
ChangeLog
coders/png.c

index 74a596af1bb67d6c15fb1f23753e0636ae764c46..0b83adf2435f21a7fc59c13db46b0e266aa4914c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2010-05-08  6.6.1-7 Cristy  <quetzlzacatenango@image...>
+  * Fix improper 'invalid colormap index' PNG bug.
+
 2010-05-07  6.6.1-6 Anthony Thyssen <A.Thyssen@griffith...>
   * Added % and ! modification flags to morphology distance kernel
     scaling factor, for easier usage.
index 263cedb51d43f8222fb6ac83f866381c8cc77b3b..9456f2fa9171bece967b7c62de2f6dff2f413961 100644 (file)
@@ -2524,9 +2524,6 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
   else /* image->storage_class != DirectClass */
     for (pass=0; pass < num_passes; pass++)
     {
-      IndexPacket
-        indice;
-
       Quantum
         *quantum_scanline;
 
@@ -2687,13 +2684,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
         */
         r=quantum_scanline;
         for (x=0; x < (long) image->columns; x++)
-        {
-          indice=(IndexPacket) (*r++);
-          indexes[x]=indice;
-          q->red=image->colormap[(int) indice].red;
-          q->green=image->colormap[(int) indice].green;
-          q->blue=image->colormap[(int) indice].blue;
-        }
+          indexes[x]=(IndexPacket) (*r++);
         if (SyncAuthenticPixels(image,exception) == MagickFalse)
           break;
         if ((image->previous == (Image *) NULL) && (num_passes == 1))