summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/cms/cmstest.c
diff options
context:
space:
mode:
authortb <>2022-06-22 09:03:06 +0000
committertb <>2022-06-22 09:03:06 +0000
commitc14c866133ab158b515b98c08cc377637fc8bb7e (patch)
tree1d72c28f53847258f82bcb34944799c9d1d4443a /src/regress/lib/libcrypto/cms/cmstest.c
parent0c232807de21f389f04ef3f8c2f3fb8d2e093e8c (diff)
downloadopenbsd-c14c866133ab158b515b98c08cc377637fc8bb7e.tar.gz
openbsd-c14c866133ab158b515b98c08cc377637fc8bb7e.tar.bz2
openbsd-c14c866133ab158b515b98c08cc377637fc8bb7e.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/regress/lib/libcrypto/cms/cmstest.c')
0 files changed, 0 insertions, 0 deletions