Gilles Peskine
db42062cb9
mpi_copy: make the 0 case slightly more robust
...
If Y was constructed through functions in this module, then Y->n == 0
iff Y->p == NULL. However we do not prevent filling mpi structures
manually, and zero may be represented with n=0 and p a valid pointer.
Most of the code can cope with such a representation, but for the
source of mbedtls_mpi_copy, this would cause an integer underflow.
Changing the test for zero from Y->p==NULL to Y->n==0 causes this case
to work at no extra cost.
2020-01-20 21:12:50 +01:00
..
2015-06-25 10:59:56 +02:00
2019-12-03 16:07:18 +00:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-12-19 10:24:22 +00:00
2019-12-19 10:24:22 +00:00
2019-08-15 15:44:50 +01:00
2020-01-20 21:12:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-09-18 13:42:36 +01:00
2019-12-20 10:43:44 +01:00
2019-09-04 10:11:45 +01:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-12-19 10:24:22 +00:00
2019-12-03 16:01:06 +00:00
2019-12-03 16:07:18 +00:00
2019-08-15 15:44:50 +01:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-11-15 11:47:14 +01:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-08-15 15:44:50 +01:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-08-15 15:44:50 +01:00
2019-12-03 16:07:18 +00:00
2019-12-19 10:24:22 +00:00
2019-12-19 10:24:22 +00:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-09-04 11:31:35 +01:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-08-08 10:58:09 +02:00
2018-11-23 22:58:38 +01:00
2019-07-23 17:30:37 +01:00
2019-10-01 16:55:29 +02:00
2019-10-01 15:22:29 +02:00
2019-02-19 15:09:14 +02:00
2019-10-08 15:57:27 +02:00
2019-08-08 10:58:09 +02:00
2019-10-28 15:25:10 +00:00
2019-07-31 14:15:27 +02:00
2019-12-19 10:24:22 +00:00
2019-09-05 09:34:34 -04:00
2019-12-03 16:07:18 +00:00
2019-08-15 15:44:50 +01:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-12-03 16:07:18 +00:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-10-04 11:16:24 +02:00
2016-11-04 23:05:56 +01:00
2019-08-15 15:44:50 +01:00