projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1fe6fa
)
Make the huge buffer smaller, so the size becomes reasonable for small-stack environm...
author
Richard Levitte
<levitte@openssl.org>
Thu, 9 May 2002 20:14:50 +0000
(20:14 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Thu, 9 May 2002 20:14:50 +0000
(20:14 +0000)
Notified by Verdon Walker <VWalker@novell.com>
crypto/bio/b_print.c
patch
|
blob
|
history
diff --git
a/crypto/bio/b_print.c
b/crypto/bio/b_print.c
index 92f9f8f4e69995aa9facd17addfdd83edab1c1b5..7c3c9bdf69f7b08511467c01d0911c8448f027da 100644
(file)
--- 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;