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

2020-09-15 Thread Jayathirth D V
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

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

2020-09-15 Thread Phil Race
On Tue, 15 Sep 2020 13:49:19 GMT, Jayathirth D V 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 fo

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

2020-09-15 Thread Sergey Bylokhov
On Tue, 15 Sep 2020 17:28:44 GMT, Phil Race 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

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

2020-09-16 Thread Jayathirth D V
On Wed, 16 Sep 2020 01:18:00 GMT, Sergey Bylokhov wrote: >> If pos is big enough you could still theoretically have overflow, but this >> is still better. > > You can try to create such images using some separate tools, BTW I have found > one here(32768 × 32768): > https://forums.bohemia.net/fo

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

2020-09-16 Thread Sergey Bylokhov
On Tue, 15 Sep 2020 13:49:19 GMT, Jayathirth D V 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 fo