develooper Front page | perl.perl5.porters | Postings from December 2003

Re: [PATCH] Re: [perl #24704] Regex replace looses chars

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
December 21, 2003 15:46
Subject:
Re: [PATCH] Re: [perl #24704] Regex replace looses chars
Message ID:
20031221234623.GI94211@plum.flirble.org
On Sun, Dec 21, 2003 at 11:40:10PM +0000, Marty Pauley wrote:

> On Sun Dec 21 22:57:34 2003, Nicholas Clark wrote:
> If we had a version of Move that filled the source with rubbish, we
> might be able to find some more bugs.  And if we changed sv_backoff and
> sv_grow to release memory when they could, we might get some nice
> segmentation faults to indicate bugs.

Strictly we'd want a version of Copy that filled the source with rubbish
(or bit flipped it it or something), as Copy is for non-overlapping
cases. Move would have to be more clever and selectively trash only the
non-overlapping parts.

But it's a suitably evil idea. If no-one gets there first I'll try it,
once I acquire some copious free time.

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About