Skip to content

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