]> git.ipfire.org Git - thirdparty/openssl.git/commit
bn: Properly error out if aliasing return value with modulus
authorTomas Mraz <tomas@openssl.org>
Wed, 18 Oct 2023 13:50:30 +0000 (15:50 +0200)
committerHugo Landau <hlandau@openssl.org>
Thu, 26 Oct 2023 14:26:29 +0000 (15:26 +0100)
commit1067944c12691c7311c50d565e02cc53577b0f09
tree714db2cad8926cb65b04e5bece838a4ba4b6dd13
parentefbf2b9881c62f01047e008c85acb350427b553d
bn: Properly error out if aliasing return value with modulus

Test case amended from code initially written by Bernd Edlinger.

Fixes #21110

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22421)

(cherry picked from commit af0025fc40779cc98c06db7e29936f9d5de8cc9e)
crypto/bn/bn_exp.c
crypto/bn/bn_mod.c
doc/man3/BN_add.pod
doc/man3/BN_mod_inverse.pod
test/bntest.c