Skip to content

Commit

Permalink
Hack the #uncompressDataTo: to bypass SubscriptOutOfBound error
Browse files Browse the repository at this point in the history
  • Loading branch information
cdelaunay committed May 12, 2020
1 parent a153e04 commit a2126ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compression/ZipFileMember.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ ZipFileMember >> uncompressDataTo: aStream [
| chunkSize |
chunkSize := 32768 min: readDataRemaining.
buffer := decoder next: chunkSize into: buffer startingAt: 1.
aStream next: chunkSize putAll: buffer startingAt: 1.
aStream next: (chunkSize min: buffer size) putAll: buffer startingAt: 1.
readDataRemaining := readDataRemaining - chunkSize.
]] on: CRCError do: [ :ex | crcErrorMessage := ex messageText. ex resume ].

Expand Down

0 comments on commit a2126ad

Please sign in to comment.