RFR: 8343984: Fix Unsafe address overflow [v7]

Shaojin Wen swen at openjdk.org
Tue Nov 12 16:40:19 UTC 2024


On Tue, 12 Nov 2024 16:30:12 GMT, Shaojin Wen <swen at openjdk.org> wrote:

>> In the JDK code, there are some places that may cause Unsafe offset overflow. The probability of occurrence is low, but if it occurs, it will cause JVM crash.
>
> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
> 
>   fix copyright

@liach provided a new idea, which is to change the type of jdk.internal.misc.Unsafe.ARRAY_XXX_OFFSET from int to long. I think @liach's idea is better, that is the way to completely solve this problem.

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

PR Comment: https://git.openjdk.org/jdk/pull/22027#issuecomment-2471016555


More information about the core-libs-dev mailing list