diff options
author | tb <> | 2020-09-12 15:24:39 +0000 |
---|---|---|
committer | tb <> | 2020-09-12 15:24:39 +0000 |
commit | 1e0b199599db7da1624618b2509c1d58106f35f7 (patch) | |
tree | 5a549ecb20fabf7acfb6c6d959ea80a0dd05abd8 /src/lib/libssl/ssl_lib.c | |
parent | e9ac214c23940126e0d8e2d9f764fdf1f9ec6273 (diff) | |
download | openbsd-1e0b199599db7da1624618b2509c1d58106f35f7.tar.gz openbsd-1e0b199599db7da1624618b2509c1d58106f35f7.tar.bz2 openbsd-1e0b199599db7da1624618b2509c1d58106f35f7.zip |
Avoid an out-of-bounds access in BN_rand()
If BN_rand() is called with top > 0 and bits == 1, it would allocate
a buf[] of size 1 and set the top bit of buf[1].
Found in OpenSSL commit efee575ad464bfb60bf72dcb73f9b51768f4b1a1 while
looking for something else.
ok beck djm inoguchi
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions