Todd Short
2b748d722b
Fix use of OPENSSL_realloc in provider
...
Fix OPENSSL_realloc failure case; `provider->operation_bits` memory
is lost when `OPENSSL_realloc()` returns NULL.
`operation_bits_sz` is never set to the length of the allocated array.
This means that operation_bits is always reallocated in
`ossl_provider_set_operation_bit()`, possibly shrinking the array.
In addition, it means that the `memset()` always zeros out the
whole reallocated array, not just the new part. Also, because
`operation_bits_sz` is always zero, the value of `*result` in
`ossl_provider_test_operation_bit()` will always be zero.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/12760 )
2020-09-02 15:21:11 -07:00
..
2020-08-27 20:27:26 -07:00
2019-09-28 20:26:34 +02:00
2020-08-29 17:40:11 +10:00
2020-07-16 14:47:04 +02:00
2020-04-23 13:55:52 +01:00
2020-08-06 13:22:30 +01:00
2020-08-27 20:27:26 -07:00
2019-10-10 14:12:15 +02:00
2020-04-23 13:55:52 +01:00
2020-06-14 12:35:34 -07:00
2020-08-27 20:27:26 -07:00
2020-08-29 17:40:11 +10:00
2020-09-01 18:53:41 +02:00
2020-08-22 11:07:14 +03:00
2019-09-28 20:26:35 +02:00
2020-08-28 19:21:29 +10:00
2020-08-21 09:04:13 +02:00
2020-08-09 17:34:52 +10:00
2020-06-20 11:02:18 +02:00
2020-08-19 13:27:31 +10:00
2020-07-09 13:43:10 +10:00
2020-07-15 23:03:21 +02:00
2020-08-27 20:27:26 -07:00
2020-08-24 10:02:26 +02:00
2020-07-22 20:19:01 +10:00
2020-08-29 17:56:20 +10:00
2020-07-24 22:53:27 +10:00
2020-08-29 17:40:11 +10:00
2020-08-17 23:40:20 +10:00
2020-08-29 17:40:11 +10:00
2020-07-03 17:18:41 +01:00
2020-04-23 13:55:52 +01:00
2019-11-12 13:30:35 +01:00
2019-10-10 14:12:15 +02:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00
2020-08-27 20:27:26 -07:00
2020-08-06 13:22:30 +01:00
2020-08-27 20:03:39 +02:00
2020-08-28 20:48:27 +02:00
2020-07-05 11:29:43 +02:00
2020-08-29 19:36:36 +03:00
2020-08-20 14:28:24 +02:00
2020-08-29 17:40:11 +10:00
2020-08-21 09:23:58 +02:00
2020-08-28 10:19:56 +10:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00
2020-08-21 09:04:10 +02:00
2020-04-23 13:55:52 +01:00
2020-08-27 20:27:26 -07:00
2020-08-29 17:40:11 +10:00
2020-08-07 14:29:00 +10:00
2019-12-18 14:46:01 +10:00
2019-09-28 20:26:34 +02:00
2020-04-24 16:42:46 +02:00
2019-10-10 14:12:15 +02:00
2020-08-24 10:02:26 +02:00
2020-08-12 13:54:37 +02:00
2018-12-06 15:32:17 +01:00
2020-06-04 14:33:57 +01:00
2020-05-27 20:11:20 +02:00
2020-08-26 14:04:17 +03:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00
2019-09-28 20:26:36 +02:00
2019-01-16 18:00:48 +01:00
2020-04-23 13:55:52 +01:00
2019-12-11 19:04:01 +01:00
2019-05-08 16:17:16 +02:00
2020-08-26 14:04:11 +03:00
2020-04-23 13:55:52 +01:00
2020-06-28 10:55:52 +02:00
2020-07-05 14:07:14 +02:00
2020-06-04 14:33:57 +01:00
2020-07-29 17:31:32 +10:00
2019-11-29 20:42:12 +01:00
2019-09-28 20:26:34 +02:00
2019-09-28 20:26:34 +02:00
2019-11-08 16:12:57 +01:00
2020-08-04 12:18:51 +10:00
2019-09-28 20:26:34 +02:00
2018-12-06 15:32:17 +01:00
2020-05-23 15:31:14 +02:00
2020-08-22 15:05:56 +10:00
2018-12-06 15:32:17 +01:00
2020-06-22 02:35:01 +02:00
2020-07-16 14:47:04 +02:00
2020-06-24 22:01:22 +02:00
2018-12-06 15:32:17 +01:00
2019-11-09 10:49:34 +01:00
2018-12-06 15:32:17 +01:00
2018-12-06 15:32:17 +01:00
2018-12-06 15:32:17 +01:00
2018-12-06 15:32:17 +01:00
2018-12-06 15:32:17 +01:00
2020-06-23 10:08:28 +10:00
2020-04-28 15:37:37 +02:00
2019-09-28 20:26:36 +02:00
2018-12-06 15:32:17 +01:00
2018-12-06 15:32:17 +01:00
2018-12-06 15:32:17 +01:00
2020-07-15 23:03:22 +02:00
2020-07-16 14:47:04 +02:00
2020-05-04 05:50:06 +02:00
2020-04-01 15:51:18 +10:00
2020-06-24 20:05:41 +10:00
2020-04-25 18:46:01 +10:00
2020-08-24 10:02:26 +02:00
2020-04-23 13:55:52 +01:00
2020-08-24 10:02:25 +02:00
2019-09-28 20:26:36 +02:00
2020-05-15 14:09:49 +01:00
2020-04-23 13:55:52 +01:00
2020-08-28 19:21:28 +10:00
2020-09-02 15:21:11 -07:00
2019-03-19 14:06:58 +01:00
2020-07-30 20:15:22 +10:00
2020-08-14 18:17:47 +10:00
2020-08-26 14:04:11 +03:00
2020-07-05 11:29:43 +02:00
2020-04-23 13:55:52 +01:00
2019-10-21 15:14:09 +02:00
2020-04-23 13:55:52 +01:00
2020-04-28 15:37:37 +02:00
2019-09-28 20:26:36 +02:00
2018-12-06 15:32:17 +01:00
2020-04-23 13:55:52 +01:00
2020-08-09 18:06:52 +10:00
2019-09-11 11:22:18 +02:00
2020-05-15 14:09:49 +01:00
2020-04-23 13:55:52 +01:00
2020-07-16 14:47:04 +02:00
2019-07-01 13:32:46 -04:00
2018-12-06 15:32:17 +01:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00