Jens Geyer created THRIFT-5211:
----------------------------------

             Summary: Handle incomplete reads correctly
                 Key: THRIFT-5211
                 URL: https://issues.apache.org/jira/browse/THRIFT-5211
             Project: Thrift
          Issue Type: Bug
          Components: Haskell - Library
            Reporter: Jens Geyer


>From [https://github.com/apache/thrift/pull/2108]

{quote}
The read functions for handles promise to return _up_ to the requested number 
of bytes. This means in case we read less bytes, we should try again to read 
some more bytes. This issue caused invalid frame sizes which caused arbitrary 
decoding failures.

I believe that the bug has been introduced in 
[{{3c42007}}|https://github.com/apache/thrift/commit/3c420072ab5388c2c00d15ada72aec5b061c4d4d]
{quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to