This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
yyparse(): only check stack size in outer loop
authorDavid Mitchell <davem@iabyn.com>
Sat, 3 Dec 2016 20:58:37 +0000 (20:58 +0000)
committerDavid Mitchell <davem@iabyn.com>
Mon, 5 Dec 2016 11:54:03 +0000 (11:54 +0000)
commitb2c9b6ee5d402c923568f214f2e2606287c912d3
tree0c5f13f99d2a2bd4ab5191c94ce68120a0a5e80c
parentddbfb8f680c952529cc9849a6e461bbfeb703526
yyparse(): only check stack size in outer loop

Rather than checking before each individual shift whether the parse stack
needs extending, only check once per rule, making sure there's enough
space to shift all the items for the longest possible rule
parser.h
perly.c
sv.c
toke.c