Re: [ID 20010811.006] re_eval: logical leaks
authorHugo van der Sanden <hv@crypt.org>
Wed, 15 Aug 2001 10:33:49 +0000 (11:33 +0100)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 15 Aug 2001 12:25:29 +0000 (12:25 +0000)
Message-Id: <200108150933.f7F9Xnr11222@crypt.compulink.co.uk>

p4raw-id: //depot/perl@11676

regexec.c
t/op/re_tests

index 0e690de..e95bd16 100644 (file)
--- a/regexec.c
+++ b/regexec.c
@@ -2625,6 +2625,7 @@ S_regmatch(pTHX_ regnode *prog)
                    /* XXXX This is too dramatic a measure... */
                    PL_reg_maxiter = 0;
 
+                   logical = 0;
                    sayNO;
                }
                sw = SvTRUE(ret);
index c83d742..ac7ef67 100644 (file)
@@ -789,3 +789,4 @@ tt+$        xxxtt   y       -       -
 (abc)?(abc)+   abc     y       $1:$2   :abc    -
 'b\s^'m        a\nb\n  n       -       -
 \ba    a       y       -       -
+^(a(??{"(?!)"})|(a)(?{1}))b    ab      y       $2      a       # [ID 20010811.006]