-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address issue #44 #45
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
I'd rather like a solution which uses &codebooks.get()
and a if let.
Hopefully this is something like what you have in mind. |
I had more something like this in mind: Lines 609 to 613 in 0d13bc4
|
@BenSandeen want to change it? Then I can merge the PR :) |
Yep, I'll get to work now, sorry for the delay, I've been busy. Hopefully the third time's the charm! :D |
|
Yes, that's what I originally imagined. Actually I think an even better way of fixing the bug would be to reject the entire stream already during header decoding. For this, please edit the Sorry for the back & forth, but I think that's what's most compliant with the spec. |
Specifically, there is a similar check with |
K, I'll take a look at that |
All right, I undid the previous changes and made the fix in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'll merge right away via squashing your commits. In the future you can also check out the command git reset --hard origin/master
or git reset --hard upstream/master
which will remove any prior commits (needs force push thereafter).
This is my first open source PR, so please keep any criticism constructive, thanks!