diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-24 21:41:15 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-24 21:41:15 +0000 |
commit | deba6acf63025e7134736825e837b012fcf602b8 (patch) | |
tree | 9b3a052751eed5b55df6f744cf3bdd49f84b76a9 | |
parent | 00cc1bc128f4769fed1a6f21b1d1bda334b7691f (diff) |
explain why mmap; pointed out by claus, pr 3932
-rw-r--r-- | lib/libc/stdio/vfprintf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index 600f8bc34f6..576fe20e1ea 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -31,7 +31,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: vfprintf.c,v 1.23 2004/09/18 19:28:06 otto Exp $"; +static char *rcsid = "$OpenBSD: vfprintf.c,v 1.24 2004/09/24 21:41:14 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -812,7 +812,9 @@ error: * Find all arguments when a positional parameter is encountered. Returns a * table, indexed by argument number, of pointers to each arguments. The * initial argument table should be an array of STATIC_ARG_TBL_SIZE entries. - * It will be replaces with a malloc-ed on if it overflows. + * It will be replaces with a mmap-ed one if it overflows (malloc cannot be + * used since we are attempting to make snprintf thread safe, and alloca is + * problematic since we have nested functions..) */ static void __find_arguments(fmt0, ap, argtable, argtablesiz) |