summaryrefslogtreecommitdiff
path: root/mathoms.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2014-01-27 10:42:28 -0700
committerKarl Williamson <public@khwilliamson.com>2014-01-27 11:07:18 -0700
commit445bf929f6118f5f2b0e19171f576c3a6d7ada50 (patch)
treecab3ea7a043854d09ad59b32342755b1e8b5bffb /mathoms.c
parent1b4a62a4c81dba4bbb281d24fde1c3b7308fdbfe (diff)
downloadperl-445bf929f6118f5f2b0e19171f576c3a6d7ada50.tar.gz
Taint more operands with case changes
The documentation says that Perl taints certain operations when subject to locale rules, such as lc() and ucfirst(). Prior to this commit there were exceptions when the operand to these functions contained no characters whose case change actually varied depending on the locale, for example the empty string or above-Latin1 code points. Changing to conform to the documentation simplifies the core code, and yields more consistent results.
Diffstat (limited to 'mathoms.c')
-rw-r--r--mathoms.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mathoms.c b/mathoms.c
index 592116a7ec..73f1e8d38b 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -1180,7 +1180,7 @@ Perl_to_utf8_fold(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp)
{
PERL_ARGS_ASSERT_TO_UTF8_FOLD;
- return _to_utf8_fold_flags(p, ustrp, lenp, FOLD_FLAGS_FULL, NULL);
+ return _to_utf8_fold_flags(p, ustrp, lenp, FOLD_FLAGS_FULL);
}
UV
@@ -1188,7 +1188,7 @@ Perl_to_utf8_lower(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp)
{
PERL_ARGS_ASSERT_TO_UTF8_LOWER;
- return _to_utf8_lower_flags(p, ustrp, lenp, FALSE, NULL);
+ return _to_utf8_lower_flags(p, ustrp, lenp, FALSE);
}
UV
@@ -1196,7 +1196,7 @@ Perl_to_utf8_title(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp)
{
PERL_ARGS_ASSERT_TO_UTF8_TITLE;
- return _to_utf8_title_flags(p, ustrp, lenp, FALSE, NULL);
+ return _to_utf8_title_flags(p, ustrp, lenp, FALSE);
}
UV
@@ -1204,7 +1204,7 @@ Perl_to_utf8_upper(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp)
{
PERL_ARGS_ASSERT_TO_UTF8_UPPER;
- return _to_utf8_upper_flags(p, ustrp, lenp, FALSE, NULL);
+ return _to_utf8_upper_flags(p, ustrp, lenp, FALSE);
}
SV *