[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug(s) in 2.5.19 skel.c
From: |
Bruce Lilly |
Subject: |
bug(s) in 2.5.19 skel.c |
Date: |
Sat, 14 Sep 2002 22:40:10 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 |
The lexical analyzer produced by 2.5.19 corrupts memory
in some cases. After a long period of debugging (hampered
by the difficulty of using a meaningful debugging version
of malloc with flex), I have traced the problem to random
garbage (uninitialized data) in some of the yyguts structure.
The attached patch addresses the problem for YY_USES_REJECT.
There might be a similar problem with YY_TEXT_IS_ARRAY, but
I haven't addressed that.
Best regards,
Bruce Lilly
*** skel.c.orig Sat Sep 14 22:32:14 2002
--- skel.c Sat Sep 14 22:33:46 2002
***************
*** 2028,2033 ****
--- 2028,2040 ----
" YY_G(yy_start_stack_depth) = 0;",
" YY_G(yy_start_stack) = (int *) 0;",
"",
+ "#ifdef YY_USES_REJECT",
+ " YY_G(yy_state_buf) = 0;",
+ " YY_G(yy_state_ptr) = 0;",
+ " YY_G(yy_full_match) = 0;",
+ " YY_G(yy_lp) = 0;",
+ "#endif",
+ "",
"/* Defined in main.c */",
"#ifdef YY_STDINIT",
" yyin = stdin;",
- bug(s) in 2.5.19 skel.c,
Bruce Lilly <=
- Re: bug(s) in 2.5.19 skel.c, John Millaway, 2002/09/15
- Re: bug(s) in 2.5.19 skel.c, Bruce Lilly, 2002/09/15
- Re: bug(s) in 2.5.19 skel.c, Bruce Lilly, 2002/09/15
- Re: bug(s) in 2.5.19 skel.c, John Millaway, 2002/09/15
- Re: bug(s) in 2.5.19 skel.c, Hans-Bernhard Broeker, 2002/09/16
- Re: bug(s) in 2.5.19 skel.c, John Millaway, 2002/09/16
- Re: bug(s) in 2.5.19 skel.c, Hans-Bernhard Broeker, 2002/09/16
- Re: bug(s) in 2.5.19 skel.c, John Millaway, 2002/09/16
- Re: bug(s) in 2.5.19 skel.c, Bruce Lilly, 2002/09/16
- Re: bug(s) in 2.5.19 skel.c, Hans-Bernhard Broeker, 2002/09/17