diff options
author | Richard Levitte <levitte@openssl.org> | 2023-01-12 10:17:01 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-01-20 07:38:30 +0000 |
commit | 1b24b5a1b43c2af0a6c1cb2d196f5132ee723488 (patch) | |
tree | aa0bca5897bb232450a806311e3959dfea031ed0 /crypto/bn/bn_const.c | |
parent | 7331e7ef79fe4499d81cc92249e9c97e9ff9291a (diff) | |
download | openssl-new-1b24b5a1b43c2af0a6c1cb2d196f5132ee723488.tar.gz |
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)
Diffstat (limited to 'crypto/bn/bn_const.c')
0 files changed, 0 insertions, 0 deletions