From c5068351b021209639730df6817caae31886f20b Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 2 Jul 2017 20:50:25 -0400 Subject: [PATCH] ... --- coders/ept.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coders/ept.c b/coders/ept.c index 1ef06c867..590b67c4c 100644 --- a/coders/ept.c +++ b/coders/ept.c @@ -197,13 +197,13 @@ static Image *ReadEPTImage(const ImageInfo *image_info,ExceptionInfo *exception) ept_info.postscript_offset=(MagickOffsetType) ReadBlobLSBLong(image); ept_info.postscript_length=ReadBlobLSBLong(image); if (ept_info.postscript_length > GetBlobSize(image)) - ThrowReaderException(CorruptImageError,"ImproperImageHeader"); + ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile"); (void) ReadBlobLSBLong(image); (void) ReadBlobLSBLong(image); ept_info.tiff_offset=(MagickOffsetType) ReadBlobLSBLong(image); ept_info.tiff_length=ReadBlobLSBLong(image); if (ept_info.tiff_length > GetBlobSize(image)) - ThrowReaderException(CorruptImageError,"ImproperImageHeader"); + ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile"); (void) ReadBlobLSBShort(image); ept_info.postscript=(unsigned char *) AcquireQuantumMemory( ept_info.postscript_length+1,sizeof(*ept_info.postscript)); -- 2.40.0