https://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=30866).
* Apply Debian patches, (reference
https://github.com/ImageMagick/ImageMagick/issues/304).
+ * Permit EPT images with just a TIFF or EPS image, not both (reference
+ https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=30921).
2016-11-15 7.0.3-7 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.3-7, GIT revision 19024:87aca83:20161115.
(void) ResetMagickMemory(ept_info.tiff,0,(ept_info.tiff_length+1)*
sizeof(*ept_info.tiff));
offset=SeekBlob(image,ept_info.tiff_offset,SEEK_SET);
- if (offset < 30)
+ if ((ept_info.tiff_length != 0) && (offset < 30))
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
count=ReadBlob(image,ept_info.tiff_length,ept_info.tiff);
if (count != (ssize_t) (ept_info.tiff_length))
(void) ThrowMagickException(exception,GetMagickModule(),CorruptImageWarning,
"InsufficientImageDataInFile","`%s'",image->filename);
offset=SeekBlob(image,ept_info.postscript_offset,SEEK_SET);
- if (offset < 30)
+ if ((ept_info.postscript_length != 0) && (offset < 30))
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
count=ReadBlob(image,ept_info.postscript_length,ept_info.postscript);
if (count != (ssize_t) (ept_info.postscript_length))