Commit d0f432b8 authored by Guido van Rossum's avatar Guido van Rossum

A bug in PCRE could cause core dumps in patterns such as

'((a)*)*'. Andrew Kuchling posted a fix to the string-sig.
parent ff170fbb
...@@ -809,6 +809,13 @@ do { ...@@ -809,6 +809,13 @@ do {
case OP_KETRMIN: case OP_KETRMIN:
return TRUE; return TRUE;
/* Skip over entire bracket groups with zero lower bound */
case OP_BRAZERO:
case OP_BRAMINZERO:
cc++;
/* Fall through */
/* Skip over assertive subpatterns */ /* Skip over assertive subpatterns */
case OP_ASSERT: case OP_ASSERT:
...@@ -823,8 +830,6 @@ do { ...@@ -823,8 +830,6 @@ do {
case OP_EOD: case OP_EOD:
case OP_CIRC: case OP_CIRC:
case OP_DOLL: case OP_DOLL:
case OP_BRAZERO:
case OP_BRAMINZERO:
case OP_NOT_WORD_BOUNDARY: case OP_NOT_WORD_BOUNDARY:
case OP_WORD_BOUNDARY: case OP_WORD_BOUNDARY:
case OP_NOT_WORD_BOUNDARY_L: case OP_NOT_WORD_BOUNDARY_L:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment