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

Provide libsodium with the correct buffer size. #52

Open
wants to merge 1 commit into
base: releases/0.3
Choose a base branch
from

Conversation

bbockelm
Copy link

bin2hex in libsodium appends a null-character to the output array, meaning the hex array must be 2 * (sizeof bin array) + 1 characters long.

Within libmacaroons, that appears to be the actual buffer size -- but we were passing this incorrectly to libsodium. In newer versions of libsodium, this triggers an internal assert.

bin2hex in libsodium appends a null-character to the output array,
meaning the hex array must be 2 * (sizeof bin array) + 1 characters
long.

Within libmacaroons, that appears to be the actual buffer size -- but
we were passing this incorrectly to libsodium.  In newer versions of
libsodium, this triggers an internal assert.
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.

1 participant