]> git.ipfire.org Git - thirdparty/openssl.git/commit
OSSL_PARAM_BLD and BIGNUM; ensure at least one byte is allocated
authorRichard Levitte <levitte@openssl.org>
Tue, 10 Jan 2023 07:27:44 +0000 (08:27 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 11 Jan 2023 22:38:13 +0000 (23:38 +0100)
commitc455f87aebf245814ba58d6a398b45ca4e80d1d7
tree1fb247da2e81772ef8de05cb70997b0acfcbd5a7
parentc2ae89148343750e420b72ef1b709ebbc16e47b8
OSSL_PARAM_BLD and BIGNUM; ensure at least one byte is allocated

A zero BIGNUM contains zero bytes, while OSSL_PARAMs with an INTEGER (or
UNSIGNED INTEGER) data type are expected to have at least one data byte
allocated, containing a zero.  This wasn't handled correctly.

Fixes #20011

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20013)
crypto/param_build.c