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
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
regcomp.c: Safer handling of malformed UTF-8
[perl5.git]
/
regcomp.c
diff --git
a/regcomp.c
b/regcomp.c
index
fe9b326
..
4f4bb44
100644
(file)
--- a/
regcomp.c
+++ b/
regcomp.c
@@
-12651,7
+12651,7
@@
S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth)
/*FALLTHROUGH*/
default: /* A literal character */
normal_default:
- if (
UTF8_IS_STAR
T(*p) && UTF) {
+ if (
! UTF8_IS_INVARIAN
T(*p) && UTF) {
STRLEN numlen;
ender = utf8n_to_uvchr((U8*)p, RExC_end - p,
&numlen, UTF8_ALLOW_DEFAULT);