From e016103fa25167594b9ff5d410019f114b7a36fb Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sat, 23 May 2009 15:14:45 +0200 Subject: New upstream release 15.7a, fixing CVE-2009-0148 --- src/global.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'src/global.h') 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 +#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 */ -- cgit v1.2.3-54-g00ecf