Skip to content

Fix DecoderReader handling of padding#238

Merged
marshallpierce merged 1 commit into
masterfrom
mp/decoder-reader-padding
May 22, 2023
Merged

Fix DecoderReader handling of padding#238
marshallpierce merged 1 commit into
masterfrom
mp/decoder-reader-padding

Conversation

@marshallpierce

Copy link
Copy Markdown
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.
@danielabrozzoni

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown

That would be great! Thanks :)

@marshallpierce

Copy link
Copy Markdown
Owner Author

Fix incoming in #239

@marshallpierce

Copy link
Copy Markdown
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