diff options
author | tb <> | 2022-06-22 09:03:06 +0000 |
---|---|---|
committer | tb <> | 2022-06-22 09:03:06 +0000 |
commit | 06fb2fa6691b3cf46976d202bddc49acd66539a7 (patch) | |
tree | 1d72c28f53847258f82bcb34944799c9d1d4443a /src/lib/libcrypto/dsa/dsa_pmeth.c | |
parent | 8d061b8c94a7612312555460a005d275b38e3ae4 (diff) | |
download | openbsd-06fb2fa6691b3cf46976d202bddc49acd66539a7.tar.gz openbsd-06fb2fa6691b3cf46976d202bddc49acd66539a7.tar.bz2 openbsd-06fb2fa6691b3cf46976d202bddc49acd66539a7.zip |
Error out on negative shifts in BN_{r,l}shift()
Without these checks in both functions nw = n / BN_BITS2 will be negative
and this leads to out-of-bounds accesses via negative array indices and
memset with a negative size.
Pointed out by cheloha
ok jsing
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_pmeth.c')
0 files changed, 0 insertions, 0 deletions