Gilles Peskine
51c2e06eb8
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-03-13 16:23:45 +00:00
..
2020-03-13 15:27:12 +00:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2019-10-23 14:53:29 +01:00
2019-10-30 14:07:04 +02:00
2019-10-03 13:14:33 +03:00
2020-03-13 16:23:45 +00:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2019-09-04 16:19:49 +01:00
2019-10-30 14:07:04 +02:00
2019-10-22 10:03:07 +02:00
2019-06-25 09:10:57 +01:00
2020-03-13 15:37:54 +00:00
2019-10-30 14:07:04 +02:00
2020-03-13 15:36:05 +00:00
2020-03-13 15:36:04 +00:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2019-10-22 10:03:07 +02:00
2019-10-22 10:03:07 +02:00
2020-03-13 15:37:54 +00:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2020-03-13 15:25:40 +00:00
2019-10-30 14:07:04 +02:00
2020-01-09 10:19:07 +02:00
2020-01-09 14:22:32 +02:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2020-03-13 15:24:20 +00:00
2019-11-22 15:09:39 +00:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2019-11-25 17:32:28 +02:00
2019-10-22 10:03:07 +02:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2019-10-03 13:14:33 +03:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2020-01-09 10:19:07 +02:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2020-03-13 16:21:44 +00:00
2019-10-30 14:07:04 +02:00
2020-01-09 11:11:23 +02:00
2018-10-11 11:04:20 +01:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2018-10-09 16:36:53 +01:00
2020-03-13 16:21:44 +00:00
2019-10-30 14:07:04 +02:00
2020-01-08 10:45:51 +02:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2019-09-04 16:17:45 +01:00
2020-01-09 10:19:07 +02:00
2019-10-30 14:07:04 +02:00
2020-01-09 10:19:07 +02:00
2019-10-30 14:07:04 +02:00
2020-03-09 17:39:04 +00:00
2018-09-06 12:09:56 +01:00
2019-06-20 16:33:02 +01:00
2020-03-13 15:22:14 +00:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2019-10-30 14:07:04 +02:00
2020-03-13 15:37:54 +00:00
2019-10-30 14:07:04 +02:00
2019-10-23 14:53:29 +01:00
2019-10-30 14:07:04 +02:00
2020-03-13 15:36:05 +00:00
2019-10-30 14:07:04 +02:00