RFR: 8306623: (bf) CharBuffer::allocate throws unexpected exception type with some CharSequences

Brian Burkhalter bpb at openjdk.org
Tue Apr 25 01:50:23 UTC 2023


When appending a `CharBuffer`, perform a specific check for buffer overflow before invoking `put()`.

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

Commit messages:
 - 8306623: (bf) CharBuffer::allocate throws unexpected exception type with some CharSequences

Changes: https://git.openjdk.org/jdk/pull/13632/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13632&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8306623
  Stats: 65 lines in 2 files changed: 39 ins; 0 del; 26 mod
  Patch: https://git.openjdk.org/jdk/pull/13632.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13632/head:pull/13632

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


More information about the nio-dev mailing list