Skip to content
Permalink
Browse files

...

  • Loading branch information...
Cristy
Cristy committed Jul 3, 2017
1 parent aeab33d commit 948356eec65aea91995d4b7cc487d197d2c5f602
Showing with 10 additions and 0 deletions.
  1. +10 −0 coders/jpeg.c
@@ -1030,6 +1030,11 @@ static Image *ReadJPEGImage(const ImageInfo *image_info,
image=DestroyImageList(image);
return((Image *) NULL);
}
/*
Verify that file size large enough to contain a JPEG datastream.
*/
if (GetBlobSize(image) < 107)
ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile");
/*
Initialize JPEG parameters.
*/
@@ -1504,6 +1509,7 @@ ModuleExport size_t RegisterJPEGImage(void)
#endif
entry->magick=(IsImageFormatHandler *) IsJPEG;
entry->adjoin=MagickFalse;
entry->seekable_stream=MagickTrue;
entry->description=ConstantString(description);
if (*version != '\0')
entry->version=ConstantString(version);
@@ -1520,6 +1526,7 @@ ModuleExport size_t RegisterJPEGImage(void)
#endif
entry->magick=(IsImageFormatHandler *) IsJPEG;
entry->adjoin=MagickFalse;
entry->seekable_stream=MagickTrue;
entry->description=ConstantString(description);
if (*version != '\0')
entry->version=ConstantString(version);
@@ -1535,6 +1542,7 @@ ModuleExport size_t RegisterJPEGImage(void)
entry->encoder=(EncodeImageHandler *) WriteJPEGImage;
#endif
entry->adjoin=MagickFalse;
entry->seekable_stream=MagickTrue;
entry->description=ConstantString(description);
if (*version != '\0')
entry->version=ConstantString(version);
@@ -1550,6 +1558,7 @@ ModuleExport size_t RegisterJPEGImage(void)
entry->encoder=(EncodeImageHandler *) WriteJPEGImage;
#endif
entry->adjoin=MagickFalse;
entry->seekable_stream=MagickTrue;
entry->description=ConstantString(description);
if (*version != '\0')
entry->version=ConstantString(version);
@@ -1565,6 +1574,7 @@ ModuleExport size_t RegisterJPEGImage(void)
entry->encoder=(EncodeImageHandler *) WriteJPEGImage;
#endif
entry->adjoin=MagickFalse;
entry->seekable_stream=MagickTrue;
entry->description=ConstantString(description);
if (*version != '\0')
entry->version=ConstantString(version);

0 comments on commit 948356e

Please sign in to comment.
You can’t perform that action at this time.