Check the return from OPENSSL_buf2hexstr()
authorMatt Caswell <matt@openssl.org>
Tue, 26 Nov 2019 17:15:20 +0000 (17:15 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 29 Nov 2019 14:21:55 +0000 (14:21 +0000)
commit17197a2f61d04314b465b71a4ce164b5e219f15c
treec29704c6ca5c958adb250a42581da3feabd9d3fb
parentc1ff5994407bc093eca78eb2fd4f813b7ee581a2
Check the return from OPENSSL_buf2hexstr()

The function OPENSSL_buf2hexstr() can return NULL if it fails to allocate
memory so the callers should check its return value.

Fixes #10525

Reported-by: Ziyang Li (@Liby99)
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/10526)
apps/kdf.c
apps/openssl.c
crypto/err/err_prn.c
crypto/mem_dbg.c
crypto/x509/v3_akey.c