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
commitc650ef2b4f969ce6b8d9a39f9e86c5e181dfafbc (patch)
tree72b724c025f962efef48775cfbde97ec5e9a05be /src/regress/lib/libcrypto/ecdsa/ecdsatest.c
parent4f0946cf87d94f094252f696625cc100be8bbd76 (diff)
downloadopenbsd-c650ef2b4f969ce6b8d9a39f9e86c5e181dfafbc.tar.gz
openbsd-c650ef2b4f969ce6b8d9a39f9e86c5e181dfafbc.tar.bz2
openbsd-c650ef2b4f969ce6b8d9a39f9e86c5e181dfafbc.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