RFR: 8306959: (bf) CharBuffer.append(CharSequence, int, int) throws BufferOverflowException where IndexOutOfBoundsException expected [v3]

Brian Burkhalter bpb at openjdk.org
Thu Apr 27 00:10:53 UTC 2023


> In `java.nio.CharBuffer::append(CharSequence csq, int start, int end)`, the `start` and `end` parameters need to be validated against the preconditions specified by `Appendable::append(CharSequence csq, int start, int end)` before they are used to determine whether a buffer overflow condition exists.

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  8306959: Minor tweak to test

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/13680/files
  - new: https://git.openjdk.org/jdk/pull/13680/files/9eb1d4ae..15b92089

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=13680&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=13680&range=01-02

  Stats: 8 lines in 2 files changed: 0 ins; 0 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/13680.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13680/head:pull/13680

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


More information about the nio-dev mailing list