This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Avoid segfault in re::regmust with pluggable RE engines
authorDavid Leadbeater <dgl@dgl.cx>
Thu, 17 Feb 2011 23:31:08 +0000 (23:31 +0000)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 18 Feb 2011 18:08:49 +0000 (10:08 -0800)
commitf1f02a6bf0c575b824780c093aa71d968aaea66e
tree91957f233669ad67ce723ff077526bbbe31547f9
parentde1ac46b8df09e847eed38152e03f6742b4af9de
Avoid segfault in re::regmust with pluggable RE engines

re::regmust would segfault if called on a Regexp belonging to a
pluggable regexp engine, only allow on the core and debugging engine.
Also correctly moralize the return values to avoid leaking.
ext/re/re.xs