+2017-05-28 7.0.5-9 Cristy <quetzlzacatenango@image...>
+ * Transient error validating the JPEG-2000 image format (reference
+ https://github.com/ImageMagick/ImageMagick/issues/501).
+ * Properly allocate DCM image colormap (reference
+ https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32063).
+
2017-05-26 7.0.5-8 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.5-8, GIT revision 20099:870a016:20170526.
double
window_max,
window_min;
-
+
window_min=ceil(info->window_center-
(info->window_width-1.0)/2.0-0.5);
window_max=floor(info->window_center+
Rescale intercept
*/
if (data != (unsigned char *) NULL)
- info.rescale_intercept=StringToDouble((char *) data,
+ info.rescale_intercept=StringToDouble((char *) data,
(char **) NULL);
break;
}
one=1;
if (colors == 0)
colors=one << info.depth;
- if (AcquireImageColormap(image,one << info.depth,exception) == MagickFalse)
+ if (AcquireImageColormap(image,colors,exception) == MagickFalse)
ThrowDCMException(ResourceLimitError,"MemoryAllocationFailed");
if (redmap != (int *) NULL)
for (i=0; i < (ssize_t) colors; i++)