Integrated: 8352724: Verify bounds for primitive array reads in JVMCI
Andrej Pečimúth
duke at openjdk.org
Mon Apr 14 18:34:52 UTC 2025
On Mon, 24 Mar 2025 14:31:54 GMT, Andrej Pečimúth <duke at openjdk.org> wrote:
> This PR adds a bounds check for primitive array reads in JVMCI. When a JVMCI compiler attempts to read after the last array element (from the padding of the allocated object), JVMCI should throw an exception instead of returning a garbage value. The check added in this PR handles both primitive and object reads.
This pull request has now been integrated.
Changeset: de0e6488
Author: Andrej Pecimuth <andrej.pecimuth at oracle.com>
Committer: Doug Simon <dnsimon at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/de0e6488449303bd15d4590480a2e47b8026a9b1
Stats: 57 lines in 2 files changed: 48 ins; 7 del; 2 mod
8352724: Verify bounds for primitive array reads in JVMCI
Reviewed-by: dnsimon
-------------
PR: https://git.openjdk.org/jdk/pull/24200
More information about the hotspot-compiler-dev
mailing list