+2018-03-24 7.0.7-28 Cristy <quetzlzacatenango@image...>
+ * Release ImageMagick version 7.0.7-28, GIT revision 23594:9615da064:20180324.
+
2018-03-21 7.0.7-28 <quetzlzacatenango@image...>
* Fixed numerous use of uninitialized values, integer overflow, memory
exceeded, and timeouts (credit to OSS Fuzz).
Samples per pixel.
*/
info.samples_per_pixel=(size_t) datum;
+ if ((info.samples_per_pixel == 0) || (info.samples_per_pixel > 4))
+ ThrowDCMException(CorruptImageError,"ImproperImageHeader");
break;
}
case 0x0004:
{
if (stream_info->offsets != (ssize_t *) NULL)
stream_info->offsets=(ssize_t *) RelinquishMagickMemory(
- stream_info->offsets);
+ stream_info->offsets);
stream_info->offsets=(ssize_t *) AcquireQuantumMemory(
stream_info->offset_count,sizeof(*stream_info->offsets));
if (stream_info->offsets == (ssize_t *) NULL)
Compute pixel scaling table.
*/
length=(size_t) (GetQuantumRange(info.depth)+1);
- if (length > GetBlobSize(image))
+ if (length > GetBlobSize(image))
ThrowDCMException(CorruptImageError,"InsufficientImageDataInFile");
info.scale=(Quantum *) AcquireQuantumMemory(MagickMax(length,256),
sizeof(*info.scale));