]> git.ipfire.org Git - thirdparty/openssl.git/commit
Don't call ossl_assert on the result of bn_wexpand
authorMatt Caswell <matt@openssl.org>
Fri, 11 Aug 2023 10:51:15 +0000 (11:51 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 14 Aug 2023 13:32:06 +0000 (14:32 +0100)
commit69b9a992961c27ac6d0f0bec259806ac953a81d4
treebd2d6f991cf3efd0334826ba9aeba9c87a0edf53
parentf2609004df4d91a365338e11d04ff67589f2d3e3
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@arm.com>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/21725)
crypto/bn/bn_lib.c