thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Geyer (Jira)" <j...@apache.org>
Subject [jira] [Created] (THRIFT-5211) Handle incomplete reads correctly
Date Sun, 17 May 2020 12:43:00 GMT
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)

Mime
View raw message