pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: program.c,v 1.513 2003/08/04 16:14:21 mast Exp $ + || $Id: program.c,v 1.514 2003/08/04 16:36:17 mast Exp $   */      #include "global.h" - RCSID("$Id: program.c,v 1.513 2003/08/04 16:14:21 mast Exp $"); + RCSID("$Id: program.c,v 1.514 2003/08/04 16:36:17 mast Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"   #include "pike_types.h"   #include "stralloc.h"   #include "las.h"   #include "language.h"   #include "lex.h"   #include "pike_macros.h"   #include "fsort.h"
pike.git/src/program.c:5529:    return low_get_line (p->program + id->func.offset, p, linep);    }    *linep = 0;    return NULL;   }      void my_yyerror(char *fmt,...) ATTRIBUTE((format(printf,1,2)))   {    va_list args;    char buf[8192]; -  +     va_start(args,fmt); -  +     VSNPRINTF (buf, sizeof (buf), fmt, args); -  -  if((size_t)strlen(buf) >= (size_t)sizeof(buf)) -  Pike_fatal("Buffer overflow in my_yyerror.\n"); -  +     yyerror(buf);    va_end(args);   }      void yy_describe_exception(struct svalue *thrown)   {    /* FIXME: Doesn't handle wide string error messages. */    struct pike_string *s = 0;       if ((thrown->type == T_ARRAY) && thrown->u.array->size &&