Skip to content
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

Fix DecoderReader handling of padding #238

Merged
merged 1 commit into from May 22, 2023

Conversation

marshallpierce
Copy link
Owner

Fixes #226.

DecoderReader now keeps more state so that erroneous internal padding that happens to fall right on a read buffer boundary isn't silently ignored.

@marshallpierce marshallpierce force-pushed the mp/decoder-reader-padding branch 3 times, most recently from 9fb1df0 to 89255b8 Compare May 21, 2023 23:53
Fixes #226.

DecoderReader now keeps more state so that erroneous internal padding that happens to fall right on a read buffer boundary isn't silently ignored.
@marshallpierce marshallpierce merged commit f589cde into master May 22, 2023
3 checks passed
@danielabrozzoni
Copy link

Hey, is there any reason why this PR should update the crate MSRV? We're using base64 in https://github.com/bitcoindevkit/rust-esplora-client and we'd like to keep 1.57.0 as our MSRV, but at the same time we would prefer not to pin base64 to "0.21.0" as we'd like to have this bug fix in. Thanks!

@marshallpierce
Copy link
Owner Author

Huh, I figured that was old enough most people won't care, but I can roll that back. 1.60 is needed to build the dev dependencies, but for the main code, 1.57 is still fine. I'll release another version with that change.

@danielabrozzoni
Copy link

That would be great! Thanks :)

@marshallpierce
Copy link
Owner Author

Fix incoming in #239

@marshallpierce
Copy link
Owner Author

0.21.2 is out with the fix.

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.

DecoderReader accepts incorrect input
2 participants