Open GoogleCodeExporter opened 9 years ago
The check in notice on r58 is this: "Fixed to short buffer problem when
encrypting short data". Could that lead to the IOException we are seeing when
the file is decompressed?
Original comment by dodn...@gmail.com
on 16 Nov 2012 at 9:35
We have found the problem and have a proposed fix. The method
TransformedIndexInput.java needs to be repaired so that the if-statement at
line 379 (from source revision 0.9.2.2):
// for performance reason check, next chunk if it is on correct location
if (chunkPos + 1 < inflatedPositions.length) {
if (inflatedPositions[chunkPos + 1] == bufferPos) {
chunkPos++;
if (input.getFilePointer() != chunkPositions[chunkPos]) {
input.seek(chunkPositions[chunkPos]);
}
return 0;
} else {
// EOF
throw new EOFException();
}
Original comment by dodn...@gmail.com
on 21 Nov 2012 at 11:08
Correction to my previous comment. It's the seekToChunk() method in class
TransformedIndexInput that needs to be repaired.
Original comment by dodn...@gmail.com
on 21 Nov 2012 at 11:33
Original issue reported on code.google.com by
dodn...@gmail.com
on 16 Nov 2012 at 1:53