ppkarwasz commented on code in PR #728:
URL: https://github.com/apache/commons-compress/pull/728#discussion_r2441408086
##########
src/main/java/org/apache/commons/compress/archivers/arj/ArjArchiveInputStream.java:
##########
@@ -99,15 +132,21 @@ public static boolean matches(final byte[] signature,
final int length) {
return length >= 2 && (0xff & signature[0]) == ARJ_MAGIC_1 && (0xff &
signature[1]) == ARJ_MAGIC_2;
}
- private final DataInputStream dis;
+ private static int readUnsignedByte(InputStream in) throws IOException {
+ final int value = in.read();
+ if (value == -1) {
+ throw new EOFException();
Review Comment:
Fixed in
https://github.com/apache/commons-compress/pull/728/commits/ef7ef06b491573dd399c3cf25cfec3695445fbe6
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]