[openssl/openssl] 69b9a9: Don't call ossl_assert on the result of bn_wexpand

Matt Caswell noreply at github.com
Mon Aug 14 13:36:13 UTC 2023

  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 69b9a992961c27ac6d0f0bec259806ac953a81d4
  Author: Matt Caswell <matt at openssl.org>
  Date:   2023-08-14 (Mon, 14 Aug 2023)

  Changed paths:
    M crypto/bn/bn_lib.c

  Log Message:
  Don't call ossl_assert on the result of bn_wexpand

bn_wexpand can fail as the result of a memory allocation failure. We
should not be calling ossl_assert() on its result because it can fail in
normal operation.

Found via the reproducible error injection in #21668

Reviewed-by: Tom Cosgrove <tom.cosgrove at arm.com>
Reviewed-by: Kurt Roeckx <kurt at roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/21725)

More information about the openssl-commits mailing list