]> 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:25:47 +0000 (15:25 +0100)
commitaf0025fc40779cc98c06db7e29936f9d5de8cc9e
tree8a6f620ac9b7148ce970ddee39416adcffebe28e
parent62f8606a0a3d881581b23a7910241f56ba0bf5a6
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)
crypto/bn/bn_exp.c
crypto/bn/bn_mod.c
doc/man3/BN_add.pod
doc/man3/BN_mod_inverse.pod
test/bntest.c