> Fixes https://bugs.openjdk.org/browse/JDK-8330462. > > If the parameter `maxLength` is larger than `Integer.MAX_VALUE - start`, then > an addition of `start` to it leads to a negative value. This is "fixed" by > using `Math.max` comparing the `maxLength` and `maxLength + start`.
Oliver Kopp has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 19 additional commits since the last revision: - Merge remote-tracking branch 'upstream/master' into patch-1 - Remove accidently commited file - Fix method name - Check for overflow - Add method comment - Fix visibility - Convert test to JUnit5 - Introduce Shim - Rename method, add comments, simplify method - Fix visibility - ... and 9 more: https://git.openjdk.org/jfx/compare/3582ea3d...ab651984 ------------- Changes: - all: https://git.openjdk.org/jfx/pull/1442/files - new: https://git.openjdk.org/jfx/pull/1442/files/4679c1c0..ab651984 Webrevs: - full: https://webrevs.openjdk.org/?repo=jfx&pr=1442&range=12 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=1442&range=11-12 Stats: 54 lines in 4 files changed: 26 ins; 2 del; 26 mod Patch: https://git.openjdk.org/jfx/pull/1442.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/1442/head:pull/1442 PR: https://git.openjdk.org/jfx/pull/1442