Commit a3eacc47 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Add nasty test case that overflows the stack with a repeated group

parent e365fb8d
......@@ -28,6 +28,10 @@ try:
except:
raise TestFailed, "re.search"
# Try nasty case that overflows the straightforward recursive
# implementation of repeated groups.
assert re.match('(x)*', 50000*'x').span() == (0, 50000)
if verbose:
print 'Running tests on re.sub'
......
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