RFR: 8351113: RC2ParameterSpec throws IllegalArgumentException when offset is negative [v3]
Sean Mullan
mullan at openjdk.org
Tue Apr 29 13:10:53 UTC 2025
On Mon, 28 Apr 2025 21:05:26 GMT, Mark Powers <mpowers at openjdk.org> wrote:
>> [JDK-8351113](https://bugs.openjdk.org/browse/JDK-8351113)
>
> Mark Powers has updated the pull request incrementally with one additional commit since the last revision:
>
> comment from Sean
src/java.base/share/classes/javax/crypto/spec/RC2ParameterSpec.java line 107:
> 105: if (offset < 0) {
> 106: throw new ArrayIndexOutOfBoundsException("offset is negative");
> 107: }
Move these lines before line 104 as `blocksize` doesn't need to be set until after this check.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24854#discussion_r2066320225
More information about the security-dev
mailing list