[Python-checkins] CVS: python/dist/src/Lib/test test_re.py,1.20,1.21
A.M. Kuchling
python-dev@python.org
Wed, 2 Aug 2000 19:06:48 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Modules _localemodule.c,2.13,2.14 binascii.c,2.22,2.23 cStringIO.c,2.24,2.25 cmathmodule.c,2.19,2.20 md5module.c,2.20,2.21 newmodule.c,2.25,2.26 readline.c,2.25,2.26 socketmodule.c,1.124,1.125 soundex.c,2.8,2.9 stropmodule.c,2.70,2.71 threadmodule.c,2.35,2.36 timemodule.c,2.98,2.99
- Next message: [Python-checkins] CVS: python/dist/src/Include methodobject.h,2.20,2.21
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv20021
Modified Files:
test_re.py
Log Message:
Add nasty test case that overflows the stack with a repeated group
Index: test_re.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_re.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** test_re.py 2000/06/30 16:25:20 1.20
--- test_re.py 2000/08/03 02:06:45 1.21
***************
*** 29,32 ****
--- 29,36 ----
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'
- Previous message: [Python-checkins] CVS: python/dist/src/Modules _localemodule.c,2.13,2.14 binascii.c,2.22,2.23 cStringIO.c,2.24,2.25 cmathmodule.c,2.19,2.20 md5module.c,2.20,2.21 newmodule.c,2.25,2.26 readline.c,2.25,2.26 socketmodule.c,1.124,1.125 soundex.c,2.8,2.9 stropmodule.c,2.70,2.71 threadmodule.c,2.35,2.36 timemodule.c,2.98,2.99
- Next message: [Python-checkins] CVS: python/dist/src/Include methodobject.h,2.20,2.21
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]