(Retracted by #9149.)
Jarkko Hietaniemi [Wed, 14 Mar 2001 03:37:53 +0000 (03:37 +0000)]
p4raw-id: //depot/perl@9143

op.c

diff --git a/op.c b/op.c
index 421dc9e..4f607c4 100644 (file)
--- a/op.c
+++ b/op.c
@@ -2872,7 +2872,7 @@ Perl_pmtrans(pTHX_ OP *o, OP *expr, OP *repl)
                }
            }
        }
-       if (!del) {
+       if (!del && (rlen > 0xff || tlen > 0xff)) {
            if (j >= rlen)
                j = rlen - 1;
            else