BIO range checking.
authorPauli <paul.dale@oracle.com>
Thu, 6 Jul 2017 04:11:27 +0000 (14:11 +1000)
committerPauli <paul.dale@oracle.com>
Thu, 6 Jul 2017 21:18:41 +0000 (07:18 +1000)
commit59e539e6429d9c3b5c4db07569f09ec6acc5a7e9
tree9a93e1dded3f25fe2ef28931756357ba0ac1caef
parent9ee344f5cd5e935c60d3bf7c3ce9ee21895069db
BIO range checking.

Add length limits to avoid problems with sprintf, strcpy and strcat.  This replaces recently removed code but also guards some previously missing function calls (for DOS & Windows).

Reworked the BIO_dump_indent_cb code to reduce temporary storage.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3870)
crypto/bio/b_dump.c
crypto/bio/bio_cb.c
crypto/bio/bss_file.c