diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-12-11 23:44:30 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-12-11 23:44:30 +0000 |
commit | d0688fc44cc7f676588fd73d97f4e90684ce4f55 (patch) | |
tree | ae834dca9d27cb62be9980caebe7fbbb99e2149a /util.c | |
parent | 39efed7fb68a394db844e6c312aadb72695b0ad8 (diff) | |
download | perl-d0688fc44cc7f676588fd73d97f4e90684ce4f55.tar.gz |
Fix allocation bug in change 29524.
p4raw-id: //depot/perl@29526
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -510,6 +510,8 @@ Perl_fbm_compile(pTHX_ SV *sv, U32 flags) table[*s] = (U8)i; s--, i++; } + } else { + Sv_Grow(sv, len + PERL_FBM_TABLE_OFFSET); } sv_magic(sv, NULL, PERL_MAGIC_bm, NULL, 0); /* deep magic */ SvVALID_on(sv); |