-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix mpi_bigendian_to_host() on bigendian systems that don't have BYTE_ORDER defined #2623
Fix mpi_bigendian_to_host() on bigendian systems that don't have BYTE_ORDER defined #2623
Conversation
The previous implementation of mpi_bigendian_to_host() did a byte-swapping regardless of the endianness of the system. Fixes Mbed-TLS#2622.
@mrpippy How would you like to be credited in the ChangeLog? |
"Brendan Shanks" is fine, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Question: do we already have backlog item to add a big-endian architecture to our CI? cc @Patater |
@mrpippy Could you please confirm this patch works for you? Thanks. |
Looks good, all tests pass on big-endian PowerPC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I believe this needs a Mbed TLS 2.16 backport, as the implementation of |
Backport available here: #2645. |
The previous implementation of
mpi_uint_bigendian_to_host_c()
did a byte-swapping regardless of the endianness of the system. Fixes #2622 found by @mrpippy.Still needs a ChangeLog entry.