mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-20 21:03:18 +00:00
8293734: Improve BMP image handling
Reviewed-by: kizune, prr, azvegint, rhalade, mschoene
This commit is contained in:
parent
b7cfb6817b
commit
3364c460a4
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user