This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix #127855, in Perl_sv_setpvn() we have to overallocate to enable COW
authorYves Orton <demerphq@gmail.com>
Fri, 8 Apr 2016 18:46:43 +0000 (20:46 +0200)
committerYves Orton <demerphq@gmail.com>
Fri, 8 Apr 2016 19:30:50 +0000 (21:30 +0200)
commite19cb11142087974d956f263d24e146b968025d5
treee69f738c8739116ba391657c3d192afc5a426fc2
parentd14d5855c45a17996ec1e16e2f3cfa8ecef24809
fix #127855, in Perl_sv_setpvn() we have to overallocate to enable COW

We need to overallocate by 2 to do COW strings. One for the null,
one for the refcount.
sv.c