[jdk19] RFR: 8289148: j.l.foreign.VaList::nextVarg call could throw IndexOutOfBoundsException or even crash the VM [v3]
Jorn Vernee
jvernee at openjdk.org
Tue Jul 5 17:27:34 UTC 2022
> This patch changes all VaList implementations to throw `NoSuchElementException` when out of bounds reads occur on a VaList that is created using the Java builder API. The docs are updated accordingly.
>
> For VaLists that are created from native addresses, we don't know their bounds, so we can not throw exceptions in that case.
>
> Testing: `jdk_foreign` test suite on all platforms that implement VaList.
Jorn Vernee has updated the pull request incrementally with one additional commit since the last revision:
hmtl -> html
-------------
Changes:
- all: https://git.openjdk.org/jdk19/pull/91/files
- new: https://git.openjdk.org/jdk19/pull/91/files/e7d7b367..ba132af5
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk19&pr=91&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk19&pr=91&range=01-02
Stats: 8 lines in 1 file changed: 0 ins; 0 del; 8 mod
Patch: https://git.openjdk.org/jdk19/pull/91.diff
Fetch: git fetch https://git.openjdk.org/jdk19 pull/91/head:pull/91
PR: https://git.openjdk.org/jdk19/pull/91
More information about the core-libs-dev
mailing list