Fix an issue that might possibly turn into a DOS depending on
authorschwarze <schwarze@openbsd.org>
Thu, 9 Dec 2021 15:28:58 +0000 (15:28 +0000)
committerschwarze <schwarze@openbsd.org>
Thu, 9 Dec 2021 15:28:58 +0000 (15:28 +0000)
commit56dfe78c03a0e2bfe0735d5b3d9641df571c7f33
tree56e1ced0dda05a104487e5349471c5ae2f771e82
parent74224f7d1cd8e46ae1a87786e4a61ad787dafdb8
Fix an issue that might possibly turn into a DOS depending on
how application software uses the API function BIO_indent(3):

If the caller asks for some output, but not more than some negative
number of bytes, give them zero bytes of output rather than drowning
them in nearly INT_MAX bytes.

OK tb@
lib/libcrypto/bio/bio_lib.c