summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/ecdsa/ecdsatest.c
diff options
context:
space:
mode:
authortb <>2022-03-30 07:17:48 +0000
committertb <>2022-03-30 07:17:48 +0000
commite37e2d88f1b7f6fa2c53768b8e72b0feb994f303 (patch)
tree72b724c025f962efef48775cfbde97ec5e9a05be /src/regress/lib/libcrypto/ecdsa/ecdsatest.c
parent61f74e26e813f57f5d3216e979c10957e0548893 (diff)
downloadopenbsd-e37e2d88f1b7f6fa2c53768b8e72b0feb994f303.tar.gz
openbsd-e37e2d88f1b7f6fa2c53768b8e72b0feb994f303.tar.bz2
openbsd-e37e2d88f1b7f6fa2c53768b8e72b0feb994f303.zip
Avoid segfaults in EVP_PKEY_CTX_free()
It is possible to call pmeth->cleanup() with an EVP_PKEY_CTX whose data is NULL. If pmeth->init() in int_ctx_new() fails, EVP_PKEY_CTX_free() is called with such a context. This in turn calls pmeth->cleanup(), and thus these cleanup functions must be careful not to use NULL data. Most of them are, but one of GOST's functions and HMAC's aren't. Reported for HMAC by Masaru Masada https://github.com/libressl-portable/openbsd/issues/129 ok bcook jsing
Diffstat (limited to 'src/regress/lib/libcrypto/ecdsa/ecdsatest.c')
0 files changed, 0 insertions, 0 deletions