https://github.com/ImageMagick/ImageMagick/issues/229).
* Prevent possible buffer overflow when reading TIFF images (bug report from
Shi Pu of MS509 Team).
+ * Initialize index channel to get expected results from the stegano coder.
2016-07-11 7.0.2-4 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.2-4, GIT revision 18591:50debe5:20160710.
status=SetImageExtent(image,image->columns,image->rows,exception);
if (status == MagickFalse)
return(DestroyImageList(image));
+ for (y=0; y < (ssize_t) image->rows; y++)
+ {
+ q=QueueAuthenticPixels(image,0,y,image->columns,1,exception);
+ if (q == (Quantum *) NULL)
+ break;
+ for (x=0; x < (ssize_t) image->columns; x++)
+ {
+ SetPixelIndex(image,0,q);
+ q+=GetPixelChannels(image);
+ }
+ if (SyncAuthenticPixels(image,exception) == MagickFalse)
+ break;
+ }
/*
Get hidden watermark from low-order bits of image.
*/