Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix GzipWriter output #3421
GZIPOutputStream was passing one of its internal byte buffers to IOOutputStream#write, which in turn used those bytes to back the ByteList for its output. So every subsequent time GZIPOutputStream wrote to that buffer, it overwrote the bytes behind the back of all the previous chunks of output.
Ensure that IOOutputStream is working on a copy of the bytes it gets from GZIPOutputStream to fix this issue.
Let me know if there's any questions, and thanks again!
Just saw Travis is showing red on this pull because the 1_7 branch went red while I was working on this. See here for a green run of these changes: https://travis-ci.org/dmarcotte/jruby/builds/87085859