RFR: 8294696 - draining buffer instead of falling back to super.transferTo

Alan Bateman alanb at openjdk.org
Sun Oct 2 15:18:57 UTC 2022


On Sat, 1 Oct 2022 20:29:23 GMT, Markus KARG <duke at openjdk.org> wrote:

> This PR implements JDK-8294696.

This change leaks a reference to the internal buffer to the wrapped class so I think we have to be cautious and make sure that it doesn't introduce any security concerns. Also you've changed the check for a mark in a subtle way - the spec is very clear that -1 is the value when there is no mark position, values less than -1 are not defined.

-------------

PR: https://git.openjdk.org/jdk/pull/10525


More information about the core-libs-dev mailing list