summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-08-30 22:08:43 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-08-30 22:09:05 -0700
commit864329c3a6aadf41283abada71c1b343e164bad3 (patch)
tree2a3773a72bde927a360555f3ff9b2d670ea30247 /embed.h
parent7d1328bb7c26d556809b1aed184cec377b18f20c (diff)
downloadperl-864329c3a6aadf41283abada71c1b343e164bad3.tar.gz
Stop substr($utf8) from calling get-magic twice
By calling get-magic twice, it could cause its string buffer to be reallocated, resulting in incorrect and random return values.
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/embed.h b/embed.h
index 8da7d450cb..ecce32125e 100644
--- a/embed.h
+++ b/embed.h
@@ -1212,6 +1212,7 @@
#define sv_clean_objs() Perl_sv_clean_objs(aTHX)
#define sv_del_backref(a,b) Perl_sv_del_backref(aTHX_ a,b)
#define sv_free_arenas() Perl_sv_free_arenas(aTHX)
+#define sv_len_utf8_nomg(a) Perl_sv_len_utf8_nomg(aTHX_ a)
#define sv_ref(a,b,c) Perl_sv_ref(aTHX_ a,b,c)
#define sv_sethek(a,b) Perl_sv_sethek(aTHX_ a,b)
#ifndef PERL_IMPLICIT_CONTEXT