[OpenJDK 2D-Dev] RFR: 8252100: NumberOverflow in class MemoryCache

Phil Race prr at openjdk.java.net
Tue Sep 15 17:31:13 UTC 2020

On Tue, 15 Sep 2020 13:49:19 GMT, Jayathirth D V <jdv at openjdk.org> wrote:

> Number overflow in javax/imageio/stream/MemoryCache.java
> I tried to reproduce the issue but was not able to create stream or BufferedImage of such a large size because of array
> size limitations. Submitter has mentioned simple fix for overflow which has solved his issue. I have verified the fix
> by running jtreg and compatibility tests and there are no failures.

If pos is big enough you could still theoretically have overflow, but this is still better.


Marked as reviewed by prr (Reviewer).

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

More information about the 2d-dev mailing list