pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.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: pike_types.c,v 1.215 2003/06/06 14:32:03 grubba Exp $ + || $Id: pike_types.c,v 1.216 2003/06/11 23:02:55 nilsson Exp $   */      #include "global.h" - RCSID("$Id: pike_types.c,v 1.215 2003/06/06 14:32:03 grubba Exp $"); + RCSID("$Id: pike_types.c,v 1.216 2003/06/11 23:02:55 nilsson Exp $");   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"   #include "stralloc.h"   #include "stuff.h"   #include "array.h"   #include "program.h"   #include "constants.h"   #include "object.h"   #include "multiset.h"
pike.git/src/pike_types.c:931:   /******/      static void internal_parse_typeA(const char **_s)   {    char buf[80];    unsigned int len;    const unsigned char **s = (const unsigned char **)_s;       while(ISSPACE(**s)) ++*s;    -  len=0; +     for(len=0;isidchar(EXTRACT_UCHAR(s[0]+len));len++)    {    if(len>=sizeof(buf)) {    my_yyerror("Buffer overflow in parse_type(\"%s\") (limit %d).",    *s, sizeof(buf));    push_type(T_MIXED);    return;    }    buf[len] = s[0][len];    }