commit | 3d6d26a26abb51afef6e664dfd9c78665793f5b6 | [log] [tgz] |
---|---|---|
author | lubing <lubing@eswin.com> | Thu May 13 10:54:25 2021 +0800 |
committer | Jerome Forissier <jerome@forissier.org> | Thu May 13 09:41:21 2021 +0200 |
tree | e7e4dbdf7423b182e38d3cd8adcbb6f24556a55a | |
parent | dc7511dfeeac7f0f96c1ad65af2596c7f20b1238 [diff] |
core: Fix memory leaks in sm2 of Mbedtls lib When enable mbedtls in optee-os , xtest run twice will be fail. Memory leakage exists in three functions. 1. grp and mpi in sm2_mbedtls_pke_encrypt 2. grp in sm2_mbedtls_dsa_sign 3. grp in sm2_mbedtls_dsa_verify Fixes: c84eee6397bb ("core: add support for SM2 using MBed TLS") Reviewed-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: lubing <lubing@eswin.com> [jf: cherry-pick commit c04a96a45ffe from master] Signed-off-by: Jerome Forissier <jerome@forissier.org>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers