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

[4.0 -> main] fix i256 key type conversion by initialize buffer before usage #1269

Merged
merged 5 commits into from
Jun 12, 2023

Conversation

heifner
Copy link
Member

@heifner heifner commented Jun 12, 2023

Thanks @learnforpractice. This updates main with release/4.0. No diff because main already includes #1252

fix i256 key type conversion by initialize buffer before usage

export_bits doesn't fill every byte in the buffer, need to ensure that 'buffer' is initialized before usage:

https://github.com/boostorg/multiprecision/blob/5f81a78cdb38ea35f98ef7a655d2535773c1261b/include/boost/multiprecision/cpp_int/import_export.hpp#L236

@heifner heifner merged commit 6c5e156 into main Jun 12, 2023
@heifner heifner deleted the fix-i256-main branch June 12, 2023 16:30
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.

4 participants