RFR: 8294509: The sign extension bug applies to 'public static int[] convertSeedBytesToInts(byte[] seed, int n, int z)' in RandomSupport
Aleksey Shipilev
shade at openjdk.org
Tue Oct 4 10:03:21 UTC 2022
On Mon, 3 Oct 2022 09:45:23 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:
> Fixes sign extension propagation to higher bits.
This looks good! Remarkably, SonarCloud reports the bug on this line ("Prevent "int" promotion by adding '& 0xff' to this expression"), but I skipped it when generating the reports, d'uh.
-------------
Marked as reviewed by shade (Reviewer).
PR: https://git.openjdk.org/jdk/pull/10530
More information about the core-libs-dev
mailing list