Integrated: 8255566: Add size validation when parsing values from VersionProps

David Holmes dholmes at openjdk.java.net
Tue May 4 22:28:54 UTC 2021


On Tue, 4 May 2021 00:38:54 GMT, David Holmes <dholmes at openjdk.org> wrote:

> java.lang.VersionProps defines a number of JDK version properties that are read by the VM and stored in JDK_Version or VM_Version. These values are read into fixed size buffers with no guarantee that the value will actually fit. The proposed solution is to get rid of the fixed size buffers, allocate initially into the thread's resource area then make a permanent copy using os::strdup.
> 
> Testing: tiers 1-3
> 
> Thanks,
> David

This pull request has now been integrated.

Changeset: d2827994
Author:    David Holmes <dholmes at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/d2827994f8a55f5af300baeb1e588ee140f4e78f
Stats:     38 lines in 2 files changed: 6 ins; 15 del; 17 mod

8255566: Add size validation when parsing values from VersionProps

Reviewed-by: rehn, iklam

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

PR: https://git.openjdk.java.net/jdk/pull/3848


More information about the hotspot-runtime-dev mailing list