From: Richard Levitte Date: Thu, 9 May 2002 20:14:17 +0000 (+0000) Subject: Make the huge buffer smaller, so the size becomes reasonable for small-stack environm... X-Git-Tag: OpenSSL_0_9_6d~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9811a7406cabad41fa23079d9b40e7e8d7640131;p=oweals%2Fopenssl.git Make the huge buffer smaller, so the size becomes reasonable for small-stack environments. Notified by Verdon Walker --- diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c index d7a60eceea..bbd510170b 100644 --- a/crypto/bio/b_print.c +++ b/crypto/bio/b_print.c @@ -762,7 +762,9 @@ int BIO_vprintf (BIO *bio, const char *format, va_list args) { int ret; size_t retlen; - MS_STATIC char hugebuf[1024*10]; + char hugebuf[1024*2]; /* Was previously 10k, which is unreasonable + in small-stack environments, like threads + or DOS programs. */ char *hugebufp = hugebuf; size_t hugebufsize = sizeof(hugebuf); char *dynbuf = NULL;