On Mon, 11 Dec 2023 20:09:09 GMT, Sergey Tsypanov <stsypa...@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