develooper Front page | perl.perl5.porters | Postings from July 2009

Re: [PATCH] Re: [perl #66110] Perl debugger runs out of memory, hangs or segfaults on XML::Parser::Lite

Thread Previous | Thread Next
From:
Craig A. Berry
Date:
July 25, 2009 13:03
Subject:
Re: [PATCH] Re: [perl #66110] Perl debugger runs out of memory, hangs or segfaults on XML::Parser::Lite
Message ID:
c9ab31fc0907251303ja0ac436qa82f6147e57b4b75@mail.gmail.com
On Sat, Jul 25, 2009 at 2:03 PM, Craig A. Berry<craig.a.berry@gmail.com> wrote:
> On Sat, Jul 25, 2009 at 9:38 AM, Bram<p5p@perl.wizbit.be> wrote:
>
>> Patch attached.
>
> Thanks, now in blead at:
>
> http://perl5.git.perl.org/perl.git/commitdiff/b7bfa85
>

Bram's change prevents the debugger from exercising the pathology reported.

My change here:

http://perl5.git.perl.org/perl.git/commitdiff/d80618d

prevents the regex engine from losing track of where its strings end
when there is a regex inside of a regex, thus guarding against the
memory errors observed.

Note that other aspects of regex state are not saved and restored and
a regex inside of a regex is still unsupported and is unlikely to
produce correct results.  perltodo.pod already mentions the desired
behavior of full reentrancy for the regex engine.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About