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

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

Merged
merged 3 commits into from
Jun 12, 2023

Conversation

heifner
Copy link
Member

@heifner heifner commented Jun 12, 2023

Thanks @learnforpractice. Back port of #1252 & #1264 to release/4.0 via merge of release/3.2 into release/4.0.

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 requested review from greg7mdp and spoonincode June 12, 2023 11:35
@heifner heifner merged commit 1b14fc9 into release/4.0 Jun 12, 2023
@heifner heifner deleted the fix-i256-4.0 branch June 12, 2023 15:52
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