This is an automated email from the ASF dual-hosted git repository. bodewig pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-compress.git
commit c3f6b4a5eab979d6e8fac632381b09469c0f9405 Author: Stefan Bodewig <bode...@apache.org> AuthorDate: Sat May 23 17:52:25 2020 +0200 COMPRESS-514 7z UINT64 may turn out to become negative longs --- .../java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java b/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java index 9ba9b02..e8f0dce 100644 --- a/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java +++ b/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java @@ -1614,7 +1614,7 @@ public class SevenZFile implements Closeable { } private static void assertFitsIntoInt(String what, long value) throws IOException { - if (value > Integer.MAX_VALUE) { + if (value > Integer.MAX_VALUE || value < Integer.MIN_VALUE) { throw new IOException("Cannot handle " + what + " " + value); } }