diff options
author | Michael Fig <michael@liveblockauctions.com> | 2010-11-27 05:44:26 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-11-27 07:41:47 -0800 |
commit | 10b78b9b0da48b3a3f28075f3114621a40a43997 (patch) | |
tree | 46eadea9f96a3fb86c6b063066b45bd6042ed778 /lib/overload.pm | |
parent | 508fb688b82a062d98e1193644fa7ea9e87552d2 (diff) | |
download | perl-10b78b9b0da48b3a3f28075f3114621a40a43997.tar.gz |
[perl #79680] overload 1.10 sprintf fails taint checking
[Note from the committer: I cannot reproduce the bug this is intended
to fix. I suspect the author has a botched Scalar::Util installation.
But it *does* make the code go faster, as it uses fewer ops. That’s my
reason for appling it.]
Diffstat (limited to 'lib/overload.pm')
-rw-r--r-- | lib/overload.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/overload.pm b/lib/overload.pm index 31c88b75df..dbc3de6fbc 100644 --- a/lib/overload.pm +++ b/lib/overload.pm @@ -99,7 +99,7 @@ sub AddrRef { my $class_prefix = defined($class) ? "$class=" : ""; my $type = Scalar::Util::reftype($_[0]); my $addr = Scalar::Util::refaddr($_[0]); - return sprintf("$class_prefix$type(0x%x)", $addr); + return sprintf("%s%s(0x%x)", $class_prefix, $type, $addr); } *StrVal = *AddrRef; |