> `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: Transfer all bytes but clamp returned value to Long.MAX_VALUE ------------- Changes: - all: https://git.openjdk.org/jdk/pull/11403/files - new: https://git.openjdk.org/jdk/pull/11403/files/11d73c60..254d6990 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=11403&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11403&range=00-01 Stats: 20 lines in 1 file changed: 0 ins; 12 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/11403.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11403/head:pull/11403 PR: https://git.openjdk.org/jdk/pull/11403