Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1345077 > unrolled thread

Re: [PATCH] MPI: Endianness fix

Started byHerbert Xu <herbert@gondor.apana.org.au>
First post2016-02-27 20:40 +0100
Last post2016-02-27 20:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] MPI: Endianness fix Herbert Xu <herbert@gondor.apana.org.au> - 2016-02-27 20:40 +0100

#1345077 — Re: [PATCH] MPI: Endianness fix

FromHerbert Xu <herbert@gondor.apana.org.au>
Date2016-02-27 20:40 +0100
SubjectRe: [PATCH] MPI: Endianness fix
Message-ID<r6SSC-7LP-21@gated-at.bofh.it>
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 <mmarek@suse.com>

Applied.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web