diff options
author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | 2023-09-18 16:38:50 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-09-20 13:10:10 +0800 |
commit | 21155620fbf2edbb071144894ff9d67ba9a1faa0 (patch) | |
tree | e4c39faf9fa80b46c6ba5f1571ae8e3e2c862a1f /scripts/gdb/linux/mm.py | |
parent | 0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff) |
crypto: sm2 - Fix crash caused by uninitialized context
In sm2_compute_z_digest() function, the newly allocated structure
mpi_ec_ctx is used, but forget to initialize it, which will cause
a crash when performing subsequent operations.
Fixes: e5221fa6a355 ("KEYS: asymmetric: Move sm2 code into x509_public_key")
Cc: stable@vger.kernel.org # v6.5
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions