Skip to content

Commit dc7013e

Browse files
Alexei Voitylovgnu-andrew
Alexei Voitylov
authored andcommittedOct 5, 2023
8297856: Improve handling of Bidi characters
Reviewed-by: mbalao, andrew Backport-of: 244b89fc786894cb8cca742f91875ebb98b603ff
1 parent 9d59e5b commit dc7013e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎jdk/src/share/classes/sun/text/bidi/BidiBase.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3391,7 +3391,7 @@ public static void reorderVisually(byte[] levels,
33913391
levelStart + " is out of range 0 to " +
33923392
(objects.length-1));
33933393
}
3394-
if (0 > count || objects.length < (objectStart+count)) {
3394+
if (0 > count || objects.length - count < objectStart) {
33953395
throw new IllegalArgumentException("Value count " +
33963396
levelStart + " is out of range 0 to " +
33973397
(objects.length - objectStart));

0 commit comments

Comments
 (0)
Please sign in to comment.