Skip to content

Commit 811cd80

Browse files
committed
fix spotbugs check
1 parent 98547fd commit 811cd80

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/ssl

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/ssl/CertUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ private static int[] readLength(byte[] data, int offset) throws CertificateParsi
336336
}
337337
int fullLength = 0;
338338
for (int i = 0; i < lengthOfLength; i++) {
339-
fullLength = (fullLength << 8) | data[offset + 2 + i];
339+
fullLength = (fullLength << 8) | (data[offset + 2 + i] & 0xff);
340340
}
341341
return new int[]{offset + 2 + lengthOfLength, fullLength};
342342
}

0 commit comments

Comments
 (0)