RFR: 8267068: Incomplete @throws javadoc for various javax.crypto.spec classes [v3]
Mark Powers
mpowers at openjdk.org
Thu Feb 20 14:36:59 UTC 2025
On Wed, 12 Feb 2025 21:08:50 GMT, Valerie Peng <valeriep at openjdk.org> wrote:
>> Mark Powers has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains three commits:
>>
>> - Merge master
>> - review comments from Valerie and Sean
>> - first iteration
>
> src/java.base/share/classes/javax/crypto/spec/IvParameterSpec.java line 73:
>
>> 71: * or {@code (iv.length - offset < len)}
>> 72: * @throws ArrayIndexOutOfBoundsException if {@code offset}
>> 73: * or {@code len} index bytes outside the {@code iv}.
>
> `RC2ParameterSpec(int, byte[], int)` ctor should be documented with AIOOBE as well. If you pass a negative offset into it, AIOOBE is thrown by the `System.arraycopy()` call.
fixed
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23188#discussion_r1963680579
More information about the security-dev
mailing list