Skip to content

Commit

Permalink
Fix off-by-one error in DeflatePlugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Jan 10, 2022
1 parent 607a26b commit 5b6066b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -579,12 +579,12 @@ public long primitiveZipSendBlock(final PointersObject rcvr, final PointersObjec
zipPosition = fetchIntegerofObject(1, rcvr);
/* zipWriteLimit := interpreterProxy fetchInteger: 3 ofObject: rcvr. */
zipReadLimit = fetchIntegerofObject(2, rcvr);
zipBitBuf = fetchIntegerofObject(writeStreamInstSize + 1, rcvr);
zipBitPos = fetchIntegerofObject(writeStreamInstSize + 2, rcvr);
zipBitBuf = fetchIntegerofObject(writeStreamInstSize + 0, rcvr);
zipBitPos = fetchIntegerofObject(writeStreamInstSize + 1, rcvr);
final long result = sendBlockwithwithwith(litStream, distStream, litTree, distTree);
storeIntegerofObjectwithValue(1, rcvr, zipPosition);
storeIntegerofObjectwithValue(readStreamInstSize + 1, rcvr, zipBitBuf);
storeIntegerofObjectwithValue(readStreamInstSize + 2, rcvr, zipBitPos);
storeIntegerofObjectwithValue(writeStreamInstSize + 0, rcvr, zipBitBuf);
storeIntegerofObjectwithValue(writeStreamInstSize + 1, rcvr, zipBitPos);
return result;
}

Expand Down

0 comments on commit 5b6066b

Please sign in to comment.