Add some sanity checks for BIO_read* and BIO_gets
authorMatt Caswell <matt@openssl.org>
Fri, 21 Oct 2016 14:21:55 +0000 (15:21 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 28 Oct 2016 08:48:54 +0000 (09:48 +0100)
commitfbba62f6c9671b151df648f06afdf6af14518ab4
tree306ae4259835d52da837c326788f6f2720ec950e
parent42c6046064d2ee45d59baec53bedde4ea434294f
Add some sanity checks for BIO_read* and BIO_gets

Make sure the return value isn't bigger than the buffer len

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/bio/bio_lib.c