diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2009-05-23 15:14:45 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2009-05-24 12:17:09 +0200 |
commit | 911aae05b5d3ffd2543333e27cf06778381c7b3c (patch) | |
tree | 33330b37bf5ede3156f1a7984f1692073223e454 /src/global.h | |
parent | 04b38c4c173cef3b1b12163f1cf5a9b3cef8cb4a (diff) |
New upstream release 15.7a, fixing CVE-2009-014815.7a-1
Diffstat (limited to 'src/global.h')
-rw-r--r-- | src/global.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/global.h b/src/global.h index 212906d..a61f59e 100644 --- a/src/global.h +++ b/src/global.h @@ -30,7 +30,7 @@ DAMAGE. =========================================================================*/ -/* $Id: global.h,v 1.35 2006/07/23 20:59:20 broeker Exp $ */ +/* $Id: global.h,v 1.37 2009/04/10 13:39:23 broeker Exp $ */ /* cscope - interactive C symbol cross-reference * @@ -94,6 +94,22 @@ char *memset(); typedef RETSIGTYPE (*sighandler_t)(int); #endif +#if HAVE_STDARG_H +#include <stdarg.h> +#if !HAVE_VSNPRINTF +int rpl_vsnprintf(char *, size_t, const char *, va_list); +#endif +#if !HAVE_SNPRINTF +int rpl_snprintf(char *, size_t, const char *, ...); +#endif +#if !HAVE_VASPRINTF +int rpl_vasprintf(char **, const char *, va_list); +#endif +#if !HAVE_ASPRINTF +int rpl_asprintf(char **, const char *, ...); +#endif +#endif /* HAVE_STDARG_H */ + /* FIXME: this testing for platforms is foolish. Stop it! */ #if BSD # undef tolower /* BSD toupper and tolower don't test the character */ @@ -248,7 +264,7 @@ extern char temp1[]; /* temporary file name */ extern char temp2[]; /* temporary file name */ extern long totalterms; /* total inverted index terms */ extern BOOL trun_syms; /* truncate symbols to 8 characters */ -extern char tempstring[8192]; /* global dummy string buffer */ +extern char tempstring[TEMPSTRING_LEN + 1]; /* global dummy string buffer */ extern char *tmpdir; /* temporary directory */ /* command.c global data */ |