Skip to content
Permalink
Browse files
8239429: AbsPathsInImage.java fails in JDK 11u and 14u on Windows
Reviewed-by: tbell
  • Loading branch information
erikj79 committed Feb 20, 2020
1 parent f77016b commit 5fff0506f9dca6bcfe91992138ceff32d86370a8
Showing 1 changed file with 1 addition and 1 deletion.
@@ -197,7 +197,7 @@ private List<String> scanBytes(byte[] data, List<byte[]> searchPatterns) {
for (byte[] searchPattern : searchPatterns) {
boolean found = true;
for (int j = 0; j < searchPattern.length; j++) {
if ((i + j > data.length || data[i + j] != searchPattern[j])) {
if ((i + j >= data.length || data[i + j] != searchPattern[j])) {
found = false;
break;
}

0 comments on commit 5fff050

Please sign in to comment.