]> git.ipfire.org Git - thirdparty/openssl.git/commit
bin2bn(): When len==0, just return a zero BIGNUM
authorRichard Levitte <levitte@openssl.org>
Thu, 12 Jan 2023 09:17:01 +0000 (10:17 +0100)
committerHugo Landau <hlandau@openssl.org>
Fri, 20 Jan 2023 07:38:30 +0000 (07:38 +0000)
commit1b24b5a1b43c2af0a6c1cb2d196f5132ee723488
treeaa0bca5897bb232450a806311e3959dfea031ed0
parent7331e7ef79fe4499d81cc92249e9c97e9ff9291a
bin2bn(): When len==0, just return a zero BIGNUM

This allows calls with s==NULL and len==0 to be safe.  It probably already
was, but address sanitizers could still complain.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20033)
crypto/bn/bn_lib.c