diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-06-22 09:03:07 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-06-22 09:03:07 +0000 |
commit | b4e81876e99d34d13e53ea0d8080da167a5153f8 (patch) | |
tree | ea7ea51bb4d4d1d52ce29ccf6380ccaf8e1239c6 /regress/lib/libcrypto | |
parent | 3b69929b4e0b6fea0af22ac1a91d6bd081c0bc0d (diff) |
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 'regress/lib/libcrypto')
0 files changed, 0 insertions, 0 deletions