Integrated: 8281472: JVM options processing silently truncates large illegal options values

Harold Seigel hseigel at openjdk.java.net
Tue Mar 1 13:26:11 UTC 2022


On Thu, 17 Feb 2022 19:09:26 GMT, Harold Seigel <hseigel at openjdk.org> wrote:

> Please review this change to fix JDK-8281472.  The fix prevents truncation of large illegal option values by rejecting those values if they exceed the range of their type.  For example, it rejects values of int options that are not between max_int and min_int.
> 
> The fix was tested by running Mach5 tiers 1-2 on Linux, Mac OS, and Windows, and Mach5 tiers 3-5 on Linux-x64 and Windows-x64.
> 
> Thanks, Harold

This pull request has now been integrated.

Changeset: a95edee6
Author:    Harold Seigel <hseigel at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/a95edee634c6be52043b55d1a8f3df85a58f97c7
Stats:     138 lines in 5 files changed: 126 ins; 3 del; 9 mod

8281472: JVM options processing silently truncates large illegal options values

Reviewed-by: dholmes, iklam

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

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


More information about the hotspot-dev mailing list