Skip to content

Commit 46e3aab

Browse files
author
Cristy
committed
...
1 parent 5d43fdf commit 46e3aab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: coders/png.c

+4
Original file line numberDiff line numberDiff line change
@@ -4305,6 +4305,8 @@ static Image *ReadOneJNGImage(MngInfo *mng_info,
43054305
c;
43064306

43074307
c=ReadBlobByte(image);
4308+
if (c == EOF)
4309+
break;
43084310
chunk[i]=(unsigned char) c;
43094311
}
43104312

@@ -5164,6 +5166,8 @@ static Image *ReadOneMNGImage(MngInfo* mng_info, const ImageInfo *image_info,
51645166
c;
51655167

51665168
c=ReadBlobByte(image);
5169+
if (c == EOF)
5170+
break;
51675171
chunk[i]=(unsigned char) c;
51685172
}
51695173

0 commit comments

Comments
 (0)