[ https://issues.apache.org/jira/browse/THRIFT-3294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14697278#comment-14697278 ]
ASF GitHub Bot commented on THRIFT-3294: ---------------------------------------- GitHub user Magrath opened a pull request: https://github.com/apache/thrift/pull/585 THRIFT-3294 Fix buffer overrun in Java implementation of Zlib transport The TZlibTransport did not check the write buffer length when flushing. Instead, it assumed that the entire write buffer byte array was the compressed input. The unit test is based on TestTFramedTransport and verifies the fix. You can merge this pull request into a Git repository by running: $ git pull https://github.com/Magrath/thrift THRIFT-3294 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/thrift/pull/585.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #585 ---- commit 5a51f0670613284c4d5da8e7da80c4b47eed8ede Author: Magrath <p...@paulmagrath.com> Date: 2015-08-14T15:26:19Z THRIFT-3294 Fix buffer overrun in Java implementation of Zlib transport The TZlibTransport did not check the write buffer length when flushing. Instead, it assumed that the entire write buffer byte array was the compressed input. ---- > TZlibTransport for Java does not write data correctly > ----------------------------------------------------- > > Key: THRIFT-3294 > URL: https://issues.apache.org/jira/browse/THRIFT-3294 > Project: Thrift > Issue Type: Bug > Components: Java - Library > Affects Versions: 0.9.3 > Reporter: Paul Magrath > -- This message was sent by Atlassian JIRA (v6.3.4#6332)