develooper Front page | perl.perl5.porters | Postings from November 2014

[perl #123071] substitution loop issue with long strings

Thread Previous
James E Keenan via RT
November 15, 2014 03:01
[perl #123071] substitution loop issue with long strings
Message ID:
On Mon Oct 27 21:40:18 2014, sprout wrote:
> I’m creating a ticket for this, so it is easier to track.
> That’s exactly what’s happening.  The sbu_iters and sbu_maxiters
> members defined in cop.h are of type I32.
> We could fix this by changing those two struct members to SSize_t.
> But if that would enlarge the struct subst/struct blk union defined in
> cop.h, it might be worthwhile considering skipping the check
> altogether for long strings.  

Father C, which of these two alternatives do you think we should pursue?  (Or, are there others?)

> After all, if substitution loops, it is
> because of a bug in perl; and if that bug does occur then it is likely
> to happen regardless of the length of the string.  (Right?)  So it
> will be caught even if the check is skipped for long strings.

Thank you very much.

James E Keenan (

via perlbug:  queue: perl5 status: new

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About