Quantifiers following (*VERB)s were not being diagnosed.
This commit is contained in:
parent
6962217441
commit
7390ce13f6
|
@ -95,6 +95,8 @@ copied).
|
||||||
was set, unpredictable behaviour could occur. The underlying bug was
|
was set, unpredictable behaviour could occur. The underlying bug was
|
||||||
incorrect code and insufficient checking while searching for the end of
|
incorrect code and insufficient checking while searching for the end of
|
||||||
the called subroutine in the parsed pattern.
|
the called subroutine in the parsed pattern.
|
||||||
|
|
||||||
|
(m) Quantifiers following (*VERB)s were not being diagnosed as errors.
|
||||||
|
|
||||||
4. Back references are now permitted in lookbehind assertions when there are
|
4. Back references are now permitted in lookbehind assertions when there are
|
||||||
no duplicated group numbers (that is, (?| has not been used), and, if the
|
no duplicated group numbers (that is, (?| has not been used), and, if the
|
||||||
|
|
|
@ -2362,6 +2362,7 @@ while (ptr < ptrend)
|
||||||
|
|
||||||
case CHAR_RIGHT_PARENTHESIS:
|
case CHAR_RIGHT_PARENTHESIS:
|
||||||
inverbname = FALSE;
|
inverbname = FALSE;
|
||||||
|
okquantifier = FALSE; /* Was probably set by literals */
|
||||||
/* This is the length in characters */
|
/* This is the length in characters */
|
||||||
verbnamelength = (PCRE2_SIZE)(parsed_pattern - verblengthptr - 1);
|
verbnamelength = (PCRE2_SIZE)(parsed_pattern - verblengthptr - 1);
|
||||||
/* But the limit on the length is in code units */
|
/* But the limit on the length is in code units */
|
||||||
|
|
|
@ -4918,4 +4918,6 @@ a)"xI
|
||||||
|
|
||||||
/(?<=(?1))((?s))/anchored
|
/(?<=(?1))((?s))/anchored
|
||||||
|
|
||||||
|
/(*:ab)*/
|
||||||
|
|
||||||
# End of testinput2
|
# End of testinput2
|
||||||
|
|
|
@ -15369,6 +15369,9 @@ Failed: error 128 at offset 2: assertion expected after (?( or (?(?C)
|
||||||
|
|
||||||
/(?<=(?1))((?s))/anchored
|
/(?<=(?1))((?s))/anchored
|
||||||
|
|
||||||
|
/(*:ab)*/
|
||||||
|
Failed: error 109 at offset 6: quantifier does not follow a repeatable item
|
||||||
|
|
||||||
# End of testinput2
|
# End of testinput2
|
||||||
Error -63: PCRE2_ERROR_BADDATA (unknown error number)
|
Error -63: PCRE2_ERROR_BADDATA (unknown error number)
|
||||||
Error -62: bad serialized data
|
Error -62: bad serialized data
|
||||||
|
|
Loading…
Reference in New Issue