Skip to content

Commit

Permalink
Fix bn_gcd code to check return value when calling BN_one()
Browse files Browse the repository at this point in the history
BN_one() uses the expand function which calls malloc which may fail.
All other places that reference BN_one() check the return value.

The issue is triggered by a memory allocation failure.
Detected by PR #18355

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from openssl/openssl#18697)
  • Loading branch information
slontis authored and jquepi committed Jul 13, 2022
1 parent 384fe65 commit fcf4654
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit fcf4654

Please sign in to comment.