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

Brian Burkhalter bpb at openjdk.org
Wed Apr 26 23:14:00 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: Add missing issue ID to @bug tag

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

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

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

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 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