Re: RFR: 8320798: Console read line with zero out should zero out underlying buffer [v3]

2023-12-01 Thread Naoto Sato
On Thu, 30 Nov 2023 17:39:30 GMT, Naoto Sato wrote: >> It is best practice to zero out the underlying buffer after use. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > remove ensureOpen() Thanks all for the reviews! ---

Re: RFR: 8320798: Console read line with zero out should zero out underlying buffer [v3]

2023-12-01 Thread Matthias Baesken
On Thu, 30 Nov 2023 17:39:30 GMT, Naoto Sato wrote: >> It is best practice to zero out the underlying buffer after use. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > remove ensureOpen() Marked as reviewed by mbaesken (Revi

Re: RFR: 8320798: Console read line with zero out should zero out underlying buffer [v3]

2023-11-30 Thread Jaikiran Pai
On Thu, 30 Nov 2023 17:39:30 GMT, Naoto Sato wrote: >> It is best practice to zero out the underlying buffer after use. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > remove ensureOpen() Thank you for the update Naoto. The

Re: RFR: 8320798: Console read line with zero out should zero out underlying buffer [v2]

2023-11-30 Thread Naoto Sato
On Tue, 28 Nov 2023 19:30:34 GMT, Naoto Sato wrote: >> It is best practice to zero out the underlying buffer after use. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > corrected fromIndex Created an equivalent issue for addr

Re: RFR: 8320798: Console read line with zero out should zero out underlying buffer [v3]

2023-11-30 Thread Naoto Sato
> It is best practice to zero out the underlying buffer after use. Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: remove ensureOpen() - Changes: - all: https://git.openjdk.org/jdk/pull/16861/files - new: https://git.o

Re: RFR: 8320798: Console read line with zero out should zero out underlying buffer [v2]

2023-11-30 Thread Naoto Sato
On Thu, 30 Nov 2023 10:58:13 GMT, Jaikiran Pai wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> corrected fromIndex > > src/java.base/share/classes/sun/nio/cs/StreamDecoder.java line 293: > >> 291: >> 292: priva

Re: RFR: 8320798: Console read line with zero out should zero out underlying buffer [v2]

2023-11-30 Thread Alan Bateman
On Thu, 30 Nov 2023 11:10:44 GMT, Jaikiran Pai wrote: > Given that the default `JdkConsole` provider implementation is the one that > uses jline (in `jdk.internal.le` module), should we also do something to zero > out this data in its implementation too. A brief glance suggests that it too > u

Re: RFR: 8320798: Console read line with zero out should zero out underlying buffer [v2]

2023-11-30 Thread Jaikiran Pai
On Tue, 28 Nov 2023 19:30:34 GMT, Naoto Sato wrote: >> It is best practice to zero out the underlying buffer after use. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > corrected fromIndex Given that the default `JdkConsole`

Re: RFR: 8320798: Console read line with zero out should zero out underlying buffer [v2]

2023-11-30 Thread Jaikiran Pai
On Tue, 28 Nov 2023 19:30:34 GMT, Naoto Sato wrote: >> It is best practice to zero out the underlying buffer after use. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > corrected fromIndex src/java.base/share/classes/sun/nio/

Re: RFR: 8320798: Console read line with zero out should zero out underlying buffer [v2]

2023-11-28 Thread Alan Bateman
On Tue, 28 Nov 2023 19:27:45 GMT, Naoto Sato wrote: >> src/java.base/share/classes/sun/nio/cs/StreamDecoder.java line 294: >> >>> 292: private void lockedFillZeroToPosition() throws IOException { >>> 293: ensureOpen(); >>> 294: Arrays.fill(bb.array(), 0, bb.arrayOffset() + bb

Re: RFR: 8320798: Console read line with zero out should zero out underlying buffer [v2]

2023-11-28 Thread Alan Bateman
On Tue, 28 Nov 2023 19:30:34 GMT, Naoto Sato wrote: >> It is best practice to zero out the underlying buffer after use. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > corrected fromIndex Marked as reviewed by alanb (Reviewe

Re: RFR: 8320798: Console read line with zero out should zero out underlying buffer [v2]

2023-11-28 Thread Joe Wang
On Tue, 28 Nov 2023 19:30:34 GMT, Naoto Sato wrote: >> It is best practice to zero out the underlying buffer after use. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > corrected fromIndex Marked as reviewed by joehw (Reviewe

Re: RFR: 8320798: Console read line with zero out should zero out underlying buffer [v2]

2023-11-28 Thread Lance Andersen
On Tue, 28 Nov 2023 19:30:34 GMT, Naoto Sato wrote: >> It is best practice to zero out the underlying buffer after use. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > corrected fromIndex Marked as reviewed by lancea (Review

Re: RFR: 8320798: Console read line with zero out should zero out underlying buffer [v2]

2023-11-28 Thread Brian Burkhalter
On Tue, 28 Nov 2023 19:30:34 GMT, Naoto Sato wrote: >> It is best practice to zero out the underlying buffer after use. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > corrected fromIndex Looks good now. - Mark

Re: RFR: 8320798: Console read line with zero out should zero out underlying buffer [v2]

2023-11-28 Thread Naoto Sato
On Tue, 28 Nov 2023 19:23:45 GMT, Brian Burkhalter wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> corrected fromIndex > > src/java.base/share/classes/sun/nio/cs/StreamDecoder.java line 294: > >> 292: private vo

Re: RFR: 8320798: Console read line with zero out should zero out underlying buffer [v2]

2023-11-28 Thread Naoto Sato
> It is best practice to zero out the underlying buffer after use. Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: corrected fromIndex - Changes: - all: https://git.openjdk.org/jdk/pull/16861/files - new: https://git.o

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

2023-11-28 Thread Brian Burkhalter
On Tue, 28 Nov 2023 19:12:50 GMT, Naoto Sato wrote: > It is best practice to zero out the underlying buffer after use. src/java.base/share/classes/sun/nio/cs/StreamDecoder.java line 294: > 292: private void lockedFillZeroToPosition() throws IOException { > 293: ensureOpen(); > 294:

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

2023-11-28 Thread Naoto Sato
It is best practice to zero out the underlying buffer after use. - Commit messages: - copyright year - fill zero to position - initial commit Changes: https://git.openjdk.org/jdk/pull/16861/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16861&range=00 Issue: https://bug