RFR: 6187113: DefaultListSelectionModel.removeIndexInterval(0, Integer.MAX_VALUE) fails [v6]

Prasanta Sadhukhan psadhukhan at openjdk.org
Tue Oct 18 04:56:07 UTC 2022


> 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.

Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:

  insertIndexInterval fix. Add more subtests

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/10409/files
  - new: https://git.openjdk.org/jdk/pull/10409/files/ee43bd8d..0c4b2846

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=10409&range=05
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=10409&range=04-05

  Stats: 62 lines in 2 files changed: 31 ins; 24 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/10409.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10409/head:pull/10409

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



More information about the client-libs-dev mailing list