mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
A bug in PCRE could cause core dumps in patterns such as
'((a)*)*'. Andrew Kuchling posted a fix to the string-sig.
This commit is contained in:
parent
ff170fbbb5
commit
d0f432b840
1 changed files with 7 additions and 2 deletions
|
|
@ -809,6 +809,13 @@ do {
|
|||
case OP_KETRMIN:
|
||||
return TRUE;
|
||||
|
||||
/* Skip over entire bracket groups with zero lower bound */
|
||||
|
||||
case OP_BRAZERO:
|
||||
case OP_BRAMINZERO:
|
||||
cc++;
|
||||
/* Fall through */
|
||||
|
||||
/* Skip over assertive subpatterns */
|
||||
|
||||
case OP_ASSERT:
|
||||
|
|
@ -823,8 +830,6 @@ do {
|
|||
case OP_EOD:
|
||||
case OP_CIRC:
|
||||
case OP_DOLL:
|
||||
case OP_BRAZERO:
|
||||
case OP_BRAMINZERO:
|
||||
case OP_NOT_WORD_BOUNDARY:
|
||||
case OP_WORD_BOUNDARY:
|
||||
case OP_NOT_WORD_BOUNDARY_L:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue