EVP_PKEY_get_utf8_string_param(): ensure the string is NUL terminated
authorRichard Levitte <levitte@openssl.org>
Tue, 17 Aug 2021 06:46:23 +0000 (08:46 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 18 Aug 2021 15:05:57 +0000 (17:05 +0200)
commit4e92d5c79d501d09a978fd896c715da07902d8b7
treee2e1244851133ccb31593d4b15d8323f81d70c12
parent2fbf0a560d77551d37e188b2d230b8fd8a94ac1f
EVP_PKEY_get_utf8_string_param(): ensure the string is NUL terminated

A check is added to fail this function if the string buffer isn't
large enough to accomodate a terminating NUL byte.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16334)
crypto/evp/p_lib.c
doc/man3/EVP_PKEY_gettable_params.pod