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

Naoto Sato naoto at openjdk.org
Tue Nov 28 19:18:13 UTC 2023


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://bugs.openjdk.org/browse/JDK-8320798
  Stats: 31 lines in 2 files changed: 30 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/16861.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16861/head:pull/16861

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


More information about the core-libs-dev mailing list