summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>2002-07-01 14:28:04 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2002-07-01 13:40:44 +0000
commitfaf11cac614129491d0258772ee4e6f8a3fb39e8 (patch)
treef22508193de69b5d6e18b2de462abe026471e8c3 /regexec.c
parent7f17c5141d7d488a184915d744f3ef35257927e7 (diff)
downloadperl-faf11cac614129491d0258772ee4e6f8a3fb39e8.tar.gz
Re: [ID 20020630.002] utf8 regex only matches 32k
Message-Id: <200207011228.g61CS4T06766@crypt.compulink.co.uk> Date: Mon, 01 Jul 2002 13:28:04 +0100 p4raw-id: //depot/perl@17390
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index 793201ca49..bdc05af088 100644
--- a/regexec.c
+++ b/regexec.c
@@ -3990,7 +3990,9 @@ S_regrepeat(pTHX_ regnode *p, I32 max)
register bool do_utf8 = PL_reg_match_utf8;
scan = PL_reginput;
- if (max != REG_INFTY && max < loceol - scan)
+ if (max == REG_INFTY)
+ max = I32_MAX;
+ else if (max < loceol - scan)
loceol = scan + max;
switch (OP(p)) {
case REG_ANY: