]> git.ipfire.org Git - thirdparty/openssl.git/commit
OPENSSL_hexstr2buf_ex(): Handle zero-length input correctly
authorTomas Mraz <tomas@openssl.org>
Mon, 1 Jul 2024 07:30:56 +0000 (09:30 +0200)
committerTomas Mraz <tomas@openssl.org>
Tue, 2 Jul 2024 18:13:56 +0000 (20:13 +0200)
commit3f7b355733407cf777bfad5ce5b79610588bacc5
tree5bca1837a0dcdd582e455440bb8e27a211705085
parent16311dbf53c464726d73b76d77ecf6275c9f9d08
OPENSSL_hexstr2buf_ex(): Handle zero-length input correctly

In case of zero-length input the code wrote one byte
before the start of the output buffer. The length
of the output was also reported incorrectly in this case.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24770)
crypto/o_str.c
test/hexstr_test.c