mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 18:53:04 +00:00
* data/glr.c (yyexpandGLRStack): Catch an off-by-one error that
led to a segmentation fault in GNU Pascal. Problem reported by Waldek Hebisch.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2006-02-27 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
* data/glr.c (yyexpandGLRStack): Catch an off-by-one error that
|
||||||
|
led to a segmentation fault in GNU Pascal. Problem reported
|
||||||
|
by Waldek Hebisch.
|
||||||
|
|
||||||
2006-02-21 Joel E. Denny <jdenny@ces.clemson.edu>
|
2006-02-21 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||||
|
|
||||||
* doc/bison.texinfo (Mid-Rule Actions): Explain how to bury a
|
* doc/bison.texinfo (Mid-Rule Actions): Explain how to bury a
|
||||||
|
|||||||
@@ -1190,7 +1190,7 @@ yyexpandGLRStack (yyGLRStack* yystackp)
|
|||||||
size_t yysize, yynewSize;
|
size_t yysize, yynewSize;
|
||||||
size_t yyn;
|
size_t yyn;
|
||||||
yysize = yystackp->yynextFree - yystackp->yyitems;
|
yysize = yystackp->yynextFree - yystackp->yyitems;
|
||||||
if (YYMAXDEPTH <= yysize)
|
if (YYMAXDEPTH - YYHEADROOM < yysize)
|
||||||
yyMemoryExhausted (yystackp);
|
yyMemoryExhausted (yystackp);
|
||||||
yynewSize = 2*yysize;
|
yynewSize = 2*yysize;
|
||||||
if (YYMAXDEPTH < yynewSize)
|
if (YYMAXDEPTH < yynewSize)
|
||||||
|
|||||||
Reference in New Issue
Block a user