You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[noup] zephyr: crypto: fix coverity issue when getting public/private key
Fix INTEGER_OVERFLOW coverity issue.
crypto_ec_key_get_subject_public_key/crypto_ec_key_get_ecprivate_key:
tainted_data_return: Called function mbedtls_asn1_write_len,
and a possible return value is known to be less than zero.
overflow: The expression len is considered to have possibly overflowed.
Check return value of mbedtls_asn1_write_len and mbedtls_asn1_write_tag,
if less than zero, return NULL.
Signed-off-by: Qingling Wu <qingling.wu@nxp.com>
0 commit comments