RFR: 8320971: Use BufferedInputStream.buf directly when param of implTransferTo() is trusted [v9]
Markus KARG
duke at openjdk.org
Wed Dec 13 07:57:48 UTC 2023
On Mon, 11 Dec 2023 20:09:09 GMT, Sergey Tsypanov <stsypanov at openjdk.org> wrote:
>> src/java.base/share/classes/java/io/ByteArrayInputStream.java line 212:
>>
>>> 210: // 'tmpbuf' is null if and only if 'out' is trusted
>>> 211: byte[] tmpbuf;
>>> 212: if (IOStreams.isTrusted(out))
>>
>> IMHO we should use `IOStreams.isTrusted(out)` in BAIS, too.
>
> BAIS - ByteArrayInputStream? It's already there
Sorry, it seems I missed that. 👍
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16879#discussion_r1424972112
More information about the core-libs-dev
mailing list