RFR: 8306959: (bf) CharBuffer.append(CharSequence, int, int) throws BufferOverflowException where IndexOutOfBoundsException expected [v4]
Brian Burkhalter
bpb at openjdk.org
Thu Apr 27 16:13:54 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 non-char generated test to retain line number parity
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/13680/files
- new: https://git.openjdk.org/jdk/pull/13680/files/15b92089..4e4fc8eb
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=13680&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=13680&range=02-03
Stats: 348 lines in 6 files changed: 342 ins; 0 del; 6 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