You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by da...@apache.org on 2013/06/03 21:13:57 UTC
svn commit: r1489111 -
/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java
Author: damjan
Date: Mon Jun 3 19:13:57 2013
New Revision: 1489111
URL: http://svn.apache.org/r1489111
Log:
Fix support for 7z files that are > 2 GB.
Modified:
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java
Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java?rev=1489111&r1=1489110&r2=1489111&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java (original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java Mon Jun 3 19:13:57 2013
@@ -915,12 +915,12 @@ public class SevenZFile {
private static long readUint64(final DataInput in) throws IOException {
int firstByte = in.readUnsignedByte();
int mask = 0x80;
- int value = 0;
+ long value = 0;
for (int i = 0; i < 8; i++) {
if ((firstByte & mask) == 0) {
return value | ((firstByte & (mask - 1)) << (8 * i));
}
- int nextByte = in.readUnsignedByte();
+ long nextByte = in.readUnsignedByte();
value |= (nextByte << (8 * i));
mask >>>= 1;
}