Skip to content

Conversation

@phile314
Copy link

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

  • Did you create an Apache Jira ticket? (not required for trivial changes)
  • If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
  • Did you squash your changes to a single commit? (not required, but preferred)
  • Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?
  • If your change does not involve any code, add [skip ci] at the end of your pull request to free up build resources.

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.
@Jens-G
Copy link
Member

Jens-G commented Apr 28, 2020

@phile314 we are looking for people who want to get more involved with Thrift as languange maintainers. Interested?

@Jens-G Jens-G self-requested a review April 28, 2020 06:59
Copy link
Member

@Jens-G Jens-G left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM, not tested

@phile314
Copy link
Author

@Jens-G Thanks for reviewing my PR. Regarding becoming a thrift haskell maintainer, as far as I can tell, the Haskell bindings and thrift in general are quite mature and stable. So if it is only the occasional pull request to review, I am happy to do that. If it involves implementing big new features or going on long bug hunts for other peoples issues, then I am less inclined to do so.

@zeshuai007
Copy link
Member

Hi @Jens-G , I am a Thrift enthusiast, and I'm familiar with several programming languages.
I use Thrift a lot and it's awesome, cause we can flexibly choose the language we need.
During my use of Thrift, I found that it still has many features that could be optimized, such as
more detailed documentation, modern c++ compatibility, test case coverage, etc.
I am very interested in Thrift and hoping to be one of the committers if possible.

@Jens-G Jens-G changed the title Haskell: Handle incomplete reads correctly. THRIFT-5211: Haskell: Handle incomplete reads correctly. May 17, 2020
@Jens-G Jens-G closed this in 261de34 May 17, 2020
sveneld pushed a commit to sveneld/thrift that referenced this pull request May 29, 2020
Client: Haskell
Patch: Philipp Hausmann

This closes apache#2108

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants