diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-02-18 18:23:43 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-02-18 18:23:43 +0000 |
commit | d020f5c489f4f9dfad0aa88c9bea73bdb19071d1 (patch) | |
tree | 8dc8c112b95da2adaff06eb144b0e7f47c16f0f7 /utf8.c | |
parent | a70a16279b57a1b432b27e8b15d0377583bdb21f (diff) | |
download | perl-d020f5c489f4f9dfad0aa88c9bea73bdb19071d1.tar.gz |
Turn of tainting locally inside swash_init(), as the internal
implementation of the regexp engine has nothing to do with user data,
so when and where it happens to call require is agnostic of the current
expression's taintedness.
p4raw-id: //depot/perl@27221
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1592,6 +1592,10 @@ Perl_swash_init(pTHX_ const char* pkg, const char* name, SV *listsv, I32 minbits ENTER; SAVEI32(PL_hints); PL_hints = 0; + /* It is assumed that callers of this routine are not passing in any + user derived data. */ + SAVEBOOL(PL_tainted); + PL_tainted = 0; save_re_context(); if (!gv_fetchmeth(stash, "SWASHNEW", 8, -1)) { /* demand load utf8 */ ENTER; |