diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-18 05:02:47 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-18 05:02:47 +0000 |
commit | 476544504b947116ee05cdb1f7600d270222ac97 (patch) | |
tree | d93aaf1a7280423465845d9a0d93ad64e86676f3 /regcomp.c | |
parent | b757f218fef3c38b1bfda5349558f9bbf1b26648 (diff) | |
download | perl-476544504b947116ee05cdb1f7600d270222ac97.tar.gz |
EBCDIC: now the worst seems to be over for
the "Malformed" warnings. Still a few of them,
and plenty of test failures, but getting better.
p4raw-id: //depot/perl@14739
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -3193,6 +3193,8 @@ tryagain: s += numlen; len += numlen; foldbuf += numlen; + if (numlen >= foldlen) + break; } else break; /* "Can't happen." */ @@ -3221,9 +3223,11 @@ tryagain: ender = utf8_to_uvchr(foldbuf, &numlen); if (numlen > 0) { reguni(pRExC_state, ender, s, &numlen); - s += numlen; len += numlen; + s += numlen; foldbuf += numlen; + if (numlen >= foldlen) + break; } else break; |