mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
crypto: memory requested by asymmetric encryption is not initialized
Using uninitialized memory for output parameters is at risk of error in asymmetric encryption process Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
+1
-1
@@ -658,7 +658,7 @@ int cryptodev_key(FAR struct crypt_kop *kop)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
krp->krp_param[i].crp_p = kmm_malloc(size);
|
krp->krp_param[i].crp_p = kmm_zalloc(size);
|
||||||
if (i >= krp->krp_iparams)
|
if (i >= krp->krp_iparams)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user