This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Don't overallocate space for cloned SV
authorKarl Williamson <public@khwilliamson.com>
Sun, 27 Nov 2011 22:45:22 +0000 (15:45 -0700)
committerKarl Williamson <public@khwilliamson.com>
Fri, 13 Jan 2012 16:58:35 +0000 (09:58 -0700)
commit6c6c83aca045f996ab24cfa45a07a3f3cd57dd38
tree56ebc6d8b82455e638a3f39afb08ee236db38734
parent6d47fb3d9b725b5fe2868e43f608848ba0abad8d
regcomp.c: Don't overallocate space for cloned SV

The length passed to _new_invlist() is in elements and not bytes, so
this was overallocating space because the number of bytes is multiplied
by a platform-dependent value.
regcomp.c