Re: Seg fault with HTML::Parser
According to Gisle Aas:
> (xxx.pl:4) pushmark
> => \HV() PV("</TD>"\0) * AV() *
> (xxx.pl:4) const(IV(1))
> => \HV() PV("</TD>"\0) * AV() * IV(1)
> (xxx.pl:4) const(IV(505))
> => \HV() PV("</TD>"\0) * AV() * IV(1) IV(505)
> (xxx.pl:4) repeat
> => ... IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1)
> IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1) IV(1)
> (xxx.pl:4) push
> => \HV() PV("</TD>"\0) IV(505)
> (xxx.pl:4) leavesub
> => [STACK UNDERFLOW!!!]
Could this be a fencepost error in pp_repeat's usage of MEXTEND(),
resulting in writing past the end of the stack, but only when the
circumstances are carefully chosen?
Shirley, though, the odds that such a buffer overflow would result in
a later underflow is vanishingly small. Like the ski resort populated
with girls looking for husbands and husbands looking for girls, the
situation is not as symmetrical as it first appears.
--
Chip Salzenberg - a.k.a. - <chip@pobox.com>
"I wanted to play hopscotch with the impenetrable mystery of existence,
but he stepped in a wormhole and had to go in early." // MST3K
Reply to: