Have OSSL_PARAM_allocate_from_text() fail on odd number of hex digits
authorRichard Levitte <levitte@openssl.org>
Tue, 23 Jan 2024 12:17:31 +0000 (13:17 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 25 Jan 2024 15:36:55 +0000 (16:36 +0100)
commitea6268cfceaba24328d66bd14bfc97c4fac14a58
tree863e8f4e99fe549205c7a22370b0c52ab65a0a76
parent8a85df7c60ba1372ee98acc5982e902d75f52130
Have OSSL_PARAM_allocate_from_text() fail on odd number of hex digits

The failure would be caught later on, so this went unnoticed, until someone
tried with just one hex digit, which was simply ignored.

Fixes #23373

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23374)
crypto/params_from_text.c
test/params_test.c