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:
18c47de
)
pp_ctl.c: Use safe UTF8SKIP
author
Karl Williamson
<khw@cpan.org>
Tue, 19 Mar 2019 01:48:48 +0000
(19:48 -0600)
committer
Karl Williamson
<khw@cpan.org>
Tue, 19 Mar 2019 16:24:29 +0000
(10:24 -0600)
pp_ctl.c
patch
|
blob
|
blame
|
history
diff --git
a/pp_ctl.c
b/pp_ctl.c
index
17d4f0d
..
a38b9c1
100644
(file)
--- a/
pp_ctl.c
+++ b/
pp_ctl.c
@@
-781,7
+781,8
@@
PP(pp_formline)
* for safety */
grow = linemax;
while (linemark--)
- s += UTF8SKIP(s);
+ s += UTF8_SAFE_SKIP(s,
+ (U8 *) SvEND(PL_formtarget));
linemark = s - (U8*)SvPVX(PL_formtarget);
}
/* Easy. They agree. */