diff options
author | Kan <chenxinpingc2306@163.com> | 2021-12-17 10:56:26 +0800 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-12-20 10:58:02 +1100 |
commit | f2f7cff20377f7402b132a19d953a9d998be26aa (patch) | |
tree | 5e99539122911651935582e8742f410c507c2476 /crypto/bn | |
parent | e9dc49c009a34b429d6dddcbb1813efa561481c7 (diff) |
Fix the null pointer dereference
Fixed #17296
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17302)
Diffstat (limited to 'crypto/bn')
-rw-r--r-- | crypto/bn/bn_print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bn_print.c b/crypto/bn/bn_print.c index 69749a9fa7..17ac6e7cac 100644 --- a/crypto/bn/bn_print.c +++ b/crypto/bn/bn_print.c @@ -142,7 +142,7 @@ int BN_hex2bn(BIGNUM **bn, const char *a) continue; if (i == 0 || i > INT_MAX / 4) - goto err; + return 0; num = i + neg; if (bn == NULL) |