Re: [PATCH] MPI: Endianness fix

From
Herbert Xu <herbert@gondor.apana.org.au>
Date
2016-02-27 19:33:38
Also in
lkml
Reply to
Michal Marek, 2016-02-17
On Wed, Feb 17, 2016 at 02:46:59PM +0100, Michal Marek wrote:
The limbs are integers in the host endianness, so we can't simply
iterate over the individual bytes. The current code happens to work on
little-endian, because the order of the limbs in the MPI array is the
same as the order of the bytes in each limb, but it breaks on
big-endian.

Fixes: 0f74fbf77d45 ("MPI: Fix mpi_read_buffer")
Signed-off-by: Michal Marek <redacted>
Applied.
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Thread (2 messages) 2 messages, 2 authors, last reply 2016-02-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help