diff options
author | tb <> | 2022-11-22 08:46:27 +0000 |
---|---|---|
committer | tb <> | 2022-11-22 08:46:27 +0000 |
commit | 557f487f9c44f46bed80efc723cd9e9d13dbc7dc (patch) | |
tree | f42696a4af811afee474635778e409fa46dc8c09 /src/lib/libcrypto/man/BN_num_bytes.3 | |
parent | db46b441d3b0b1cfbd7d103ff89510b12074254a (diff) | |
download | openbsd-557f487f9c44f46bed80efc723cd9e9d13dbc7dc.tar.gz openbsd-557f487f9c44f46bed80efc723cd9e9d13dbc7dc.tar.bz2 openbsd-557f487f9c44f46bed80efc723cd9e9d13dbc7dc.zip |
Fix segfaults in BN_dec2bn() and BN_hex2bn()
bn_print.c r1.29 added length checks to avoid overflowing the BIGNUM.
If these checks are hit in length-only mode, i.e., bn is NULL, the
error path dereferences bn. Change goto err to an early return to
avoid this.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/man/BN_num_bytes.3')
0 files changed, 0 insertions, 0 deletions