[jdk17u-dev] Withdrawn: 8294509: The sign extension bug applies to 'public static int[] convertSeedBytesToInts(byte[] seed, int n, int z)' in RandomSupport

Daniel Huang duke at openjdk.org
Tue Jul 1 22:52:53 UTC 2025


On Mon, 30 Jun 2025 17:19:40 GMT, Daniel Huang <duke at openjdk.org> wrote:

> Backport for RandomSupport issue. There is a loss of information when using convertSeedBytesToLongs() with a bad seed, causing a lot of the original bytes to be overwritten by 1s. The fix involves using a bitwise AND with the seed before distributing the seed bytes into the result.
> 
> Clean backport, ran GHA sanity checks and locally tested tier1, tier2. In tier2, there were 2 failures:
> `test/jdk/java/nio/channels/DatagramChannel/SendReceiveMaxSize.java`
> `test/jdk/java/nio/channels/FileChannel/directio/DirectIOTest.java`
> However, these both failed before the backport as well.

This pull request has been closed without being integrated.

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

PR: https://git.openjdk.org/jdk17u-dev/pull/3694


More information about the jdk-updates-dev mailing list