projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39efed7
)
Fix allocation bug in change 29524.
author
Nicholas Clark
<nick@ccl4.org>
Mon, 11 Dec 2006 23:44:30 +0000
(23:44 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Mon, 11 Dec 2006 23:44:30 +0000
(23:44 +0000)
p4raw-id: //depot/perl@29526
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index
1ae9459
..
9718c54
100644
(file)
--- 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);