[jdk17u-dev] Integrated: 8320798: Console read line with zero out should zero out underlying buffer

Goetz Lindenmaier goetz at openjdk.org
Sat Dec 16 10:52:45 UTC 2023


On Thu, 14 Dec 2023 20:57:57 GMT, Goetz Lindenmaier <goetz at openjdk.org> wrote:

> I think thsi should be backported to fix the underlying issue. 
> 
> Console has been improved a lot in 21 and later, so the original patch does not apply well.
> Console was turned into a sealed class. The implementation was moved to JdkConsoleImpl.
> (8298416: Console should be declared sealed, 8298971: Move Console implementation into jdk internal package)
> Later,  the class moved to jdk.internal.le and JLine was added (8295803: Console should be usable in jshell and other environments).
> I moved the coding to Console.java. We verified with our testcase that the issue is actually fixed.  The two follow up fixes are not needed as 8295803 is not in 17.

This pull request has now been integrated.

Changeset: 48c84783
Author:    Goetz Lindenmaier <goetz at openjdk.org>
URL:       https://git.openjdk.org/jdk17u-dev/commit/48c847836e44aec2d5be4aaa3040dffc9d95fad5
Stats:     19 lines in 2 files changed: 19 ins; 0 del; 0 mod

8320798: Console read line with zero out should zero out underlying buffer

Reviewed-by: mbaesken
Backport-of: d568562966e9a2020704eee3d67b8a106f647d9c

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

PR: https://git.openjdk.org/jdk17u-dev/pull/2053


More information about the jdk-updates-dev mailing list