tags 710315 + patch thanks Hey doko,
This is only an issue on a i386. I've rebuilt with a minimal patch, wich
you'll find attached.
> [tag@lucifer:~/pbuilder/testing_result]$ python
> Python 2.7.5 (default, May 29 2013, 22:31:19)
> [GCC 4.7.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import re; re.compile('.*yz', re.S).findall('xyz')
> ['xyz']
> >>>
Thanks!
Paul
--
.''`. Paul Tagliamonte <[email protected]>
: :' : Proud Debian Developer
`. `'` 4096R / 8F04 9AD8 2C92 066C 7352 D28A 7B58 5B30 807C 2A87
`- http://people.debian.org/~paultag
diff -u python2.7-2.7.5/debian/changelog python2.7-2.7.5/debian/changelog --- python2.7-2.7.5/debian/changelog +++ python2.7-2.7.5/debian/changelog @@ -1,3 +1,10 @@ +python2.7 (2.7.5-4.1~local1) unstable; urgency=low + + * Non-maintainer upload. + * Add re_unsigned_ptrdiff in from Python bug #17998. (Closes: #710315) + + -- Paul Tagliamonte <[email protected]> Wed, 29 May 2013 17:42:38 -0400 + python2.7 (2.7.5-4) unstable; urgency=low * Move the libc dependency of -minimal from Depends to Pre-Depends. diff -u python2.7-2.7.5/debian/patches/series.in python2.7-2.7.5/debian/patches/series.in --- python2.7-2.7.5/debian/patches/series.in +++ python2.7-2.7.5/debian/patches/series.in @@ -67,0 +68 @@ +re_unsigned_ptrdiff.diff only in patch2: unchanged: --- python2.7-2.7.5.orig/debian/patches/re_unsigned_ptrdiff.diff +++ python2.7-2.7.5/debian/patches/re_unsigned_ptrdiff.diff @@ -0,0 +1,21 @@ +diff -r d91da96a55bf Modules/_sre.c +--- a/Modules/_sre.c Thu May 16 22:47:47 2013 +0100 ++++ b/Modules/_sre.c Fri May 17 21:02:48 2013 +0300 +@@ -1028,7 +1028,7 @@ + TRACE(("|%p|%p|REPEAT_ONE %d %d\n", ctx->pattern, ctx->ptr, + ctx->pattern[1], ctx->pattern[2])); + +- if (ctx->pattern[1] > end - ctx->ptr) ++ if ((Py_ssize_t) ctx->pattern[1] > end - ctx->ptr) + RETURN_FAILURE; /* cannot match */ + + state->ptr = ctx->ptr; +@@ -1111,7 +1111,7 @@ + TRACE(("|%p|%p|MIN_REPEAT_ONE %d %d\n", ctx->pattern, ctx->ptr, + ctx->pattern[1], ctx->pattern[2])); + +- if (ctx->pattern[1] > end - ctx->ptr) ++ if ((Py_ssize_t) ctx->pattern[1] > end - ctx->ptr) + RETURN_FAILURE; /* cannot match */ + + state->ptr = ctx->ptr;
signature.asc
Description: Digital signature

