Fix bug on s390

This commit is contained in:
Manuel Pégourié-Gonnard 2015-01-23 15:50:23 +00:00
parent 258bab0b1b
commit d64359279d
2 changed files with 4 additions and 1 deletions

View file

@ -20,6 +20,9 @@ Bugfix
* Fix memory leaks in PKCS#5 and PKCS#12.
* Stack buffer overflow if ctr_drbg_update() is called with too large
add_len (found by Jean-Philippe Aumasson) (not triggerable remotely).
* Fix bug in MPI/bugnum on s390/s390x (reported by Dan Horák) (introduced
in 1.2.12).
Changes
* Blind RSA private operations even when POLARSSL_RSA_NO_CRT is defined.

View file

@ -834,7 +834,7 @@
#define MULADDC_CORE \
r = *(s++) * (t_udbl) b; \
r0 = (t_uint) r; \
r1 = (t_uint) r >> biL; \
r1 = (t_uint) (r >> biL); \
r0 += c; r1 += (r0 < c); \
r0 += *d; r1 += (r0 < *d); \
c = r1; *(d++) = r0;