summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-12-11 23:44:30 +0000
committerNicholas Clark <nick@ccl4.org>2006-12-11 23:44:30 +0000
commitd0688fc44cc7f676588fd73d97f4e90684ce4f55 (patch)
treeae834dca9d27cb62be9980caebe7fbbb99e2149a /util.c
parent39efed7fb68a394db844e6c312aadb72695b0ad8 (diff)
downloadperl-d0688fc44cc7f676588fd73d97f4e90684ce4f55.tar.gz
Fix allocation bug in change 29524.
p4raw-id: //depot/perl@29526
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.c b/util.c
index 1ae9459315..9718c54516 100644
--- a/util.c
+++ b/util.c
@@ -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);