This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0abcdfa
)
Don’t leak the source for evalbytes($utf8)
author
Father Chrysostomos
<sprout@cpan.org>
Sun, 6 Nov 2011 22:05:49 +0000
(14:05 -0800)
committer
Father Chrysostomos
<sprout@cpan.org>
Sun, 6 Nov 2011 22:24:01 +0000
(14:24 -0800)
pp_ctl.c
patch
|
blob
|
blame
|
history
diff --git
a/pp_ctl.c
b/pp_ctl.c
index
abd93ea
..
8a80792
100644
(file)
--- a/
pp_ctl.c
+++ b/
pp_ctl.c
@@
-4157,6
+4157,7
@@
PP(pp_entereval)
/* Don’t modify someone else’s scalar */
STRLEN len;
sv = newSVsv(sv);
+ (void)sv_2mortal(sv);
SvPVbyte_force(sv,len);
lex_flags |= LEX_START_COPIED;
}