On Fri, 12 Jun 2026 00:48:00 GMT, Shawn Emery <[email protected]> wrote:

> This fix includes throwing the correct exception when an offset for the key 
> length check would cause an integer overflow therefore throwing the wrong 
> exception.
> 
> ---------
> - [X] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 1ad2db7a
Author:    Shawn Emery <[email protected]>
Committer: Sean Mullan <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/1ad2db7ad11e5158177b10d5e8edbc0a8547f084
Stats:     62 lines in 3 files changed: 40 ins; 17 del; 5 mod

8386473: DESKeySpec and DESedeKeySpec may throw InvalidKeyException instead of 
ArrayIndexOutOfBoundsException for Integer.MIN_VALUE offset

Reviewed-by: mullan, syan

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

PR: https://git.openjdk.org/jdk/pull/31494

Reply via email to