summaryrefslogtreecommitdiffstats
path: root/util/opensslwrap.sh
diff options
context:
space:
mode:
authorHuiyue Xu <xuhuiyue@huawei.com>2023-11-22 09:55:27 +0800
committerHugo Landau <hlandau@openssl.org>2023-11-23 15:09:05 +0000
commit022e2d56c7f8204f40949f2feebfd7781829ee98 (patch)
tree73df87d5e8cbfb09cee837d72b3838a1a48b95de /util/opensslwrap.sh
parenteef9951e72ca2d55325493a500c286be524a2d02 (diff)
Fix a possible memory leak in SM2 provider
ctx->propq that strdup from input parameter propq in sm2sig_newctx, is not released. It should be released in sm2sig_freectx and copied to dstctx in sm2sig_dupctx. And dstctx->id and dstctx->propq should be set NULL to avoid releasing id/propq of srcctx when err occurs. Signed-off-by: Huiyue Xu <xuhuiyue@huawei.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Yang <kaishen.yy@antfin.com> Reviewed-by: Hugo Landau <hlandau@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22796) (cherry picked from commit e7d34d7ae32f16abbd79a49072cff580bee32269)
Diffstat (limited to 'util/opensslwrap.sh')
0 files changed, 0 insertions, 0 deletions