]> git.ipfire.org Git - thirdparty/openssl.git/commit
x_attrib.c: Fix print_hex() function
authorTomas Mraz <tomas@openssl.org>
Mon, 1 Jul 2024 07:52:53 +0000 (09:52 +0200)
committerMatt Caswell <matt@openssl.org>
Fri, 12 Jul 2024 10:20:35 +0000 (11:20 +0100)
commitb24a8200ab3e135c84dbf1054b92ffb713a7b5ad
tree1cfeaf9524d33c14c8e79124e4b899ef43b339e1
parent6cf42ad392241c9fee586d99b53d9bfa74130b0b
x_attrib.c: Fix print_hex() function

- Better handle 0 length input
- Use OPENSSL_buf2hexstr() instead of OPENSSL_buf2hexstr_ex()
  which fixes insufficient length of the allocate buffer.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24771)
crypto/x509/x_attrib.c