Skip to content

Commit

Permalink
Fix the null pointer dereference
Browse files Browse the repository at this point in the history
Fixes openssl#17296

Reviewed-by: Tomas Mraz <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#17297)
  • Loading branch information
KanPlus authored and paulidale committed Dec 19, 2021
1 parent 68b78dd commit f050745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/bn/bn_conv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f050745

Please sign in to comment.