]> git.ipfire.org Git - thirdparty/openssl.git/commit
Limit size of modulus for bn_mul_mont and BN_mod_exp_mont_consttime
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 8 Nov 2022 16:43:22 +0000 (17:43 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 14 Jan 2023 10:37:18 +0000 (11:37 +0100)
commit30667f5c306dbc11ac0e6fddc7d26fd984d546ab
tree96d6a8a953dc6d07ae5c6db97ba6c74895d021eb
parent92d306b32b63dd502531a89fb96c4172be0ddb49
Limit size of modulus for bn_mul_mont and BN_mod_exp_mont_consttime

Otherwise the alloca can cause an exception.

Issue reported by Jiayi Lin.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/20005)
crypto/bn/bn_exp.c
crypto/bn/bn_local.h
crypto/bn/bn_mont.c
test/exptest.c