diff options
author | nelsonb%netscape.com <devnull@localhost> | 2005-11-23 01:12:34 +0000 |
---|---|---|
committer | nelsonb%netscape.com <devnull@localhost> | 2005-11-23 01:12:34 +0000 |
commit | 0c5e4746b75e426de65f0edeb6bac1ebffed498b (patch) | |
tree | d53d6fcba4d7778161413b83606094c1ec9345ee | |
parent | efc6ec73fd3a32a186e55ad5da2cb9e383c8676e (diff) | |
download | nss-hg-0c5e4746b75e426de65f0edeb6bac1ebffed498b.tar.gz |
Fix bug in MP_ALIGN macro that always truncated pointers to 32-bits,NSS_3_11_RTMNSS_3_11_RC1NSS_3_11_BASE
even on 64-bin platforms. Bug 298630. r=rrelyea.
-rw-r--r-- | security/nss/lib/freebl/mpi/mpmontg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/lib/freebl/mpi/mpmontg.c b/security/nss/lib/freebl/mpi/mpmontg.c index 1e0f0fd6d..7b0bdd3d3 100644 --- a/security/nss/lib/freebl/mpi/mpmontg.c +++ b/security/nss/lib/freebl/mpi/mpmontg.c @@ -898,7 +898,7 @@ mp_err weave_to_mpi(mp_int *a, const unsigned char *b, MUL_NOWEAVE(&tmp,a,b) #define SWAPPA ptmp = pa1; pa1 = pa2; pa2 = ptmp -#define MP_ALIGN(x,y) ((((ptrdiff_t)(x))+((y)-1))&(~((y)-1))) +#define MP_ALIGN(x,y) ((((ptrdiff_t)(x))+((y)-1))&(((ptrdiff_t)0)-(y))) /* Do modular exponentiation using integer multiply code. */ mp_err mp_exptmod_safe_i(const mp_int * montBase, |