-
-
Notifications
You must be signed in to change notification settings - Fork 64
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 the Base 64 symbol converter. #212
Conversation
src/utils/base64.rs
Outdated
if self.input[2] == 0x80 { | ||
return Err(Error::custom("trailing Base 64 data")); | ||
|
||
if self.input[2] == 0x80 { |
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.
It would be nice if this could be a constant.
src/utils/base64.rs
Outdated
// The second to last character is padding. The last one | ||
// needs to be, too. | ||
if self.input[3] == 0x80 { | ||
self.next = 0xF0; |
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.
And this as well.
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.
It would be nice if 0x80 and 0xF0 could be constants
New * Added a new method `FoundSrvs::into_srvs` that converts the value into an iterator over the found SRV records without resolving them further. ([#174], [#214] by [@WhyNotHugo]); this was added in 0.7.2 but missing in 0.8.0) * Added impl of `Borrow<Dname<[u8]>>` and `AsRef<Dname<[u8]>>` for `Dname<_>`. ([#219] by [@iximeow}], [#225]) * Added `Dname::fmt_with_dot` that can be used when wanting to display a domain name with a dot at the end. ([#210]) Bug Fixes * Fixed trait bounds on `FoundSrvs::into_stream` to make it usable again. ([#174], [#214 by [@WhyNotHugo]]; this was fixed in 0.7.2 but missing in 0.8.0) * Fixed scanning of domain names that are just the root label. ([#210]) * Fixed `util::base64::SymbolConverter` to also include the final group in the output if there is padding. ([#212])
This PR fixes
util::base64::SymbolConverter
to also include the final group in the output if there is padding.