help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie


From: Laurence Finston
Subject: Re: newbie
Date: Fri, 14 Dec 2007 15:32:11 +0100 (CET)

This subject came up recently.

If I saw this in a parser, I would suspect that it was malicious code.

It's not just too big, there is no reason for it.  If any symbol in a 
parser really needed to refer to a string of this size, it should probably 
be referring to a file instead.

By the way, it would probably be a good idea for you to choose more 
descriptive subjects.  The subject "newbie" made me think this was spam 
and I very nearly deleted it.  "[help-bison]" is not added automatically.

Laurence Finston


On Thu, 13 Dec 2007, James Long wrote:

> I've answered my own question. The requested semantic stack for
> string[1000000] is too big.
> 
> Thanks,
> 
> Jim
> --
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> James Long
> Biotechnology Computing Research Group
> University of Alaska
> jim.long|at|alaska.edu
> http://biotech.inbre.alaska.edu
> (907) 474-5769
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> 
> 
> 
> On Dec 13, 2007, at 11:37 AM, James Long wrote:
> 
> >Can someone tell me why I might get a segfault in yyparse() at
> >
> >YYSTYPE *yyvs = yyvsa;
> >
> >I think it has something to do with
> >
> >%union
> >{
> >  char string[1000000];
> >}
> >
> >which works fine with yacc.
> >
> >Thanks,
> >
> >Jim
> >--
> >
> >%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >James Long
> >Biotechnology Computing Research Group
> >University of Alaska
> >jim.long|at|alaska.edu
> >http://biotech.inbre.alaska.edu
> >(907) 474-5769
> >%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >
> >
> >
> >
> 
> 
> 
> _______________________________________________
> address@hidden http://lists.gnu.org/mailman/listinfo/help-bison
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]