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 now been integrated. Changeset: 5b2d4301 Author: Brian Burkhalter <b...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/5b2d430131e8e5f6e91d449dab84b99ef6f1c880 Stats: 52 lines in 7 files changed: 39 ins; 0 del; 13 mod 8297632: InputStream.transferTo() method should specify what the return value should be when the number of bytes transfered is larger than Long.MAX_VALUE Reviewed-by: alanb, lancea ------------- PR: https://git.openjdk.org/jdk/pull/11403