On Tue, 29 Nov 2022 19:36:40 GMT, Brian Burkhalter <b...@openjdk.org> wrote:

>> `java.io.InputStream::transferTo` could conceivably return a negative value 
>> if the count of bytes transferred overflows a `long`. Modify the method to 
>> limit the number of bytes transferred to `Long.MAX_VALUE` per invocation.
>
> Brian Burkhalter has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   8297632: Add Reader::transferTo and select InputStream::transferTo overrides

Can you check ZipInputStream.transferTo? It has a partial copy of a lot of the 
InputStream javadoc because it has to insert "current ZIP entry" into the text. 
It's not possible to have a ZIP file larger than Long.MAX_VALUE so there may be 
nothing to do there but we should check the javadoc.

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

PR: https://git.openjdk.org/jdk/pull/11403

Reply via email to