Skip to content

Commit

Permalink
8239429: AbsPathsInImage.java fails in JDK 11u and 14u on Windows
Browse files Browse the repository at this point in the history
Reviewed-by: tbell
  • Loading branch information
erikj79 committed Feb 20, 2020
1 parent f77016b commit 5fff050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/jdk/build/AbsPathsInImage.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5fff050

Please sign in to comment.