8293734: Improve BMP image handling

Reviewed-by: kizune, prr, azvegint, rhalade, mschoene
This commit is contained in:
Jayathirth D V 2022-09-29 06:59:58 +00:00 committed by Henry Jen
parent b7cfb6817b
commit 3364c460a4

View File

@ -630,8 +630,8 @@ public class BMPImageReader extends ImageReader implements BMPConstants {
iis.mark();
iis.skipBytes(profileData - size);
byte[] profile = new byte[profileSize];
iis.readFully(profile, 0, profileSize);
byte[] profile = ReaderUtil.
staggeredReadByteStream(iis, profileSize);
iis.reset();
try {