summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa/dsa_lib.c
diff options
context:
space:
mode:
authortb <>2022-06-22 09:03:06 +0000
committertb <>2022-06-22 09:03:06 +0000
commit06fb2fa6691b3cf46976d202bddc49acd66539a7 (patch)
tree1d72c28f53847258f82bcb34944799c9d1d4443a /src/lib/libcrypto/dsa/dsa_lib.c
parent8d061b8c94a7612312555460a005d275b38e3ae4 (diff)
downloadopenbsd-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_lib.c')
0 files changed, 0 insertions, 0 deletions