diff options
author | tb <> | 2023-06-13 09:28:13 +0000 |
---|---|---|
committer | tb <> | 2023-06-13 09:28:13 +0000 |
commit | 76fac483ab33603d9382e483db0e7bc158578397 (patch) | |
tree | 7c7288ba2b684c96959520f33f7b6b9390b1e34a /src/lib/libc | |
parent | c83852c11b8675efa6930be4e17c9743d2cfda4d (diff) | |
download | openbsd-76fac483ab33603d9382e483db0e7bc158578397.tar.gz openbsd-76fac483ab33603d9382e483db0e7bc158578397.tar.bz2 openbsd-76fac483ab33603d9382e483db0e7bc158578397.zip |
Disallow aliasing of return value and modulus
All the functions changed in this commit would silently misbehave if the
return value aliases the modulus, most of the time they would succeed and
return an incorrect result of 0 in that situation. This adjusts all the
functions in BN_mod.c, others and documentation will follow later.
Prompted by a bug report about BN_mod_inverse() by Guido Vranken.
ok jsing
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions