This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
More generalized fix for #127855, overallocate in SvGROW and not just sv_grow()
authorYves Orton <demerphq@gmail.com>
Fri, 8 Apr 2016 19:25:20 +0000 (21:25 +0200)
committerYves Orton <demerphq@gmail.com>
Fri, 8 Apr 2016 19:30:50 +0000 (21:30 +0200)
commitbcc9f606509ad2fad50e16f081103451b7dc49e1
treea6db50d6af82c1b496504bf7e80902d0ebf66f0b
parente19cb11142087974d956f263d24e146b968025d5
More generalized fix for #127855, overallocate in SvGROW and not just sv_grow()

If we overallocate in SvGROW() and not just sv_grow() we can ensure
we have more cases where we can COW. We need to ensure we always
have room for a null and a reference count.
sv.c
sv.h