Skip to content
Permalink
Browse files Browse the repository at this point in the history
Skip MNG CLIP chunk with out-of-range object IDs
  • Loading branch information
glennrp committed Jul 10, 2017
1 parent 82e3b7c commit d072ed6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions coders/png.c
Expand Up @@ -5899,6 +5899,9 @@ static Image *ReadOneMNGImage(MngInfo* mng_info, const ImageInfo *image_info,

for (i=(int) first_object; i <= (int) last_object; i++)
{
if ((i < 0) || (i >= MNG_MAX_OBJECTS))
continue;

if (mng_info->exists[i] && !mng_info->frozen[i])
{
MngBox
Expand Down

0 comments on commit d072ed6

Please sign in to comment.