On Tue, 29 Nov 2022 00:56:58 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. This pull request has been closed without being integrated. ------------- PR: https://git.openjdk.org/jdk/pull/11403