summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authortb <>2020-09-12 15:24:39 +0000
committertb <>2020-09-12 15:24:39 +0000
commit1e0b199599db7da1624618b2509c1d58106f35f7 (patch)
tree5a549ecb20fabf7acfb6c6d959ea80a0dd05abd8 /src/lib/libssl/ssl_lib.c
parente9ac214c23940126e0d8e2d9f764fdf1f9ec6273 (diff)
downloadopenbsd-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