Skip to content

use libbase64 macro to calculate base64 length #2007

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

Merged
merged 1 commit into from
Nov 19, 2018

Conversation

marcelkottmann
Copy link
Contributor

@marcelkottmann marcelkottmann commented Oct 30, 2018

The calculation of the base64 encoded string length is incorrect as pointed out in #827. libbase64 already provides a macro that can be used to calculate the base64 encoded string length.

You also have to increment the calculated size by 1 for the trailing zero character.

@me-no-dev me-no-dev merged commit 259ff80 into espressif:master Nov 19, 2018
@me-no-dev
Copy link
Member

thanks!

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.

2 participants