Skip to content

Commit

Permalink
Also check image->exception to resolve #213.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Jun 5, 2023
1 parent 9385e02 commit 2934d51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coders/jpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,8 @@ static Image *ReadJPEGImage_(const ImageInfo *image_info,
client_info->profile=DestroyStringInfo(client_info->profile);
client_info=(JPEGClientInfo *) RelinquishMagickMemory(client_info);
(void) CloseBlob(image);
if (exception->severity < ErrorException)
if ((exception->severity < ErrorException) &&
(image->exception.severity < ErrorException))
return(GetFirstImageInList(image));
InheritException(exception,&image->exception);
return(DestroyImage(image));
Expand Down

0 comments on commit 2934d51

Please sign in to comment.