Skip to content

Commit

Permalink
exit on error exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Nov 7, 2024
1 parent c6fc6d1 commit fab76f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions coders/png.c
Original file line number Diff line number Diff line change
Expand Up @@ -6730,6 +6730,12 @@ static Image *ReadOneMNGImage(MngInfo* mng_info, const ImageInfo *image_info,
return(DestroyImageList(image));
}

if (exception->severity > ErrorException)
{
(void) CloseBlob(image);
return(DestroyImageList(image));
}

mng_info->image=image;

if (mng_type)
Expand Down

0 comments on commit fab76f4

Please sign in to comment.