summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/hcreate.c
diff options
context:
space:
mode:
authortb <>2023-06-13 09:28:13 +0000
committertb <>2023-06-13 09:28:13 +0000
commit76fac483ab33603d9382e483db0e7bc158578397 (patch)
tree7c7288ba2b684c96959520f33f7b6b9390b1e34a /src/lib/libc/stdlib/hcreate.c
parentc83852c11b8675efa6930be4e17c9743d2cfda4d (diff)
downloadopenbsd-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/stdlib/hcreate.c')
0 files changed, 0 insertions, 0 deletions