1
0
mirror of https://github.com/ARMmbed/mbedtls.git synced 2025-05-12 18:04:39 +08:00
Leonid Rozenboim 19e5973566 mbedtls_ssl_check_curve prevent potential NULL pointer dereferencing
Avoid the shorthand practice of the form 'x = func(foo)->bar' which
exposes the code to NULL pointer de-referencing when the 'func()'
returns a NULL pointer.

The first chunk is for when the curve group code is not recognized by
the library, and is cleanly rejected if offered.

The second chunk addresses the unlikely case of an internal error:
if 'mbedtls_pk_can_do()' returns TRUE, it should rule out
'mbedtls_pk_ec()' returning a NULL, unless there is a regression.

Signed-off-by: Leonid Rozenboim <leonid.rozenboim@oracle.com>
2022-08-19 11:49:22 -07:00
..
2022-06-29 16:17:50 +01:00
2022-05-06 10:55:10 +02:00
2022-07-27 14:43:38 +01:00
2022-07-28 10:31:16 +01:00
2022-08-11 12:50:06 +02:00
2022-08-12 11:02:01 +01:00
2022-07-21 12:11:53 +02:00
2022-05-12 09:45:03 +01:00
2022-07-01 16:43:25 +01:00
2021-12-06 07:50:27 +01:00
2022-08-11 12:50:06 +02:00
2022-07-28 23:08:00 +08:00
2022-07-20 11:07:29 +08:00
2022-03-29 17:43:56 +02:00