Merge pull request #16790 from github/max-schaefer-patch-1

JavaScript: Fix CodeQL alert in extractor
This commit is contained in:
Erik Krogh Kristensen
2024-06-20 20:20:00 +02:00
committed by GitHub

View File

@@ -115,7 +115,7 @@ public class Identifiers {
// rare.
private static boolean isInAstralSet(int code, int[] set) {
int pos = 0x10000;
for (int i = 0; i < set.length; i += 2) {
for (int i = 0; i < set.length - 1; i += 2) {
pos += set[i];
if (pos > code) return false;
pos += set[i + 1];