On Tue, 23 Nov 2021 11:05:27 GMT, Jayathirth D V <j...@openjdk.org> wrote:

> If we use a custom stream and specify limit on stream.read() length, 
> WBMPImageReader.read() doesnt verify whether we are decoded complete data or 
> not. We can check the length of data decoded and rerun the stream.read() or 
> use readFully(). In case of other decoders like BMP we are using readFully(), 
> so i have updated WBMPImageReader.read() to use readFully().

This pull request has now been integrated.

Changeset: 8198807b
Author:    Jayathirth D V <j...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/8198807b4a811040c7d9f65fb98494fc7d840814
Stats:     122 lines in 2 files changed: 118 ins; 0 del; 4 mod

8266435: WBMPImageReader.read() should not truncate the input stream

Reviewed-by: serb

-------------

PR: https://git.openjdk.java.net/jdk/pull/6518

Reply via email to