Integrated: 6187113: DefaultListSelectionModel.removeIndexInterval(0, Integer.MAX_VALUE) fails

Prasanta Sadhukhan psadhukhan at openjdk.org
Mon Jan 30 07:40:24 UTC 2023


On Fri, 23 Sep 2022 13:19:01 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> DefaultListSelectionModel.removeIndexInterva accepts `int` value which allows it to take in Integer.MAX_VALUE theoratically but it does calculation with that value which can results in IOOBE.
> Fix is to make sure the calculation stays within bounds.

This pull request has now been integrated.

Changeset: c2ebd179
Author:    Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/c2ebd179388cac5d6e10f98aab9a7ea909f8bc6b
Stats:     111 lines in 2 files changed: 103 ins; 0 del; 8 mod

6187113: DefaultListSelectionModel.removeIndexInterval(0, Integer.MAX_VALUE) fails

Co-authored-by: Alexey Ivanov <aivanov at openjdk.org>
Reviewed-by: aivanov

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

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



More information about the client-libs-dev mailing list