Hi. Yamaguchi san.

> From now on, I will use flex-2.5.35.  Since we cannot check
> flex-2.5.11, should we make flex-2.5.35 new required version?

flex-2.5.35 is already used widely and it seems that there is no problem
in changing required version into 2.5.35. 
 

On Fri, 01 Jun 2012 07:17:48 +0900
"Shigio YAMAGUCHI" <[email protected]> wrote:

> Hi,
> I checked that the parser generated by flex-2.5.35 without
> changing YY_BUF_SIZE works well on the source code which had
> caused 'input buffer overflow' error.
> 
> From now on, I will use flex-2.5.35.  Since we cannot check
> flex-2.5.11, should we make flex-2.5.35 new required version?
> 
> Thank you for investigating.
> 
> > I think that the limit of flex which caused the problem is that
> > using yylineno is regarded as using REJECT. 
> > 
> > flex-2.5.4:
> >         if ( do_yylineno )
> >                 /* This should really be "maintain_backup_tables = true" */
> >                 reject_really_used = true;
> > 
> > Since this code is eliminated in flex-2.5.11 and later, option -D may be
> > unnecessary if required version is changed to "2.5.11 or later". 
> > 
> > http://flex.cvs.sourceforge.net/viewvc/flex/flex/main.c?r1=2.94&r2=2.95
> > 
> > 
> > I could not find flex-2.5.11. 
> > Therefore, I checked the output of flex-2.5.4 and flex-2.3.35. 
> > ========================================================================
> > $ flex --version
> > flex version 2.5.4
> > $ grep REJECT libparser/*.c
> > libparser/asm_scan.c:#define YY_USES_REJECT
> > libparser/asm_scan.c:#define REJECT \
> > libparser/asm_scan.c:#ifdef YY_USES_REJECT
> > libparser/asm_scan.c:"input buffer overflow, can't enlarge buffer because 
> > scanner uses REJECT" );
> > libparser/php.c:#define YY_USES_REJECT
> > libparser/php.c:#define REJECT \
> > libparser/php.c:#ifdef YY_USES_REJECT
> > libparser/php.c:"input buffer overflow, can't enlarge buffer because 
> > scanner uses REJECT" );
> > ========================================================================
> > $ flex --version
> > flex 2.5.35
> > $ grep REJECT libparser/*.c
> > libparser/asm_scan.c: * any uses of REJECT which flex missed.
> > libparser/asm_scan.c:#define REJECT reject_used_but_not_detected
> > libparser/php.c: * any uses of REJECT which flex missed.
> > libparser/php.c:#define REJECT reject_used_but_not_detected
> --
> Shigio YAMAGUCHI <[email protected]>
> PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3



_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to