New submission from Martin v. Löwis <mar...@v.loewis.de>:

_sre.c:match_start currently uses Py_BuildValue("i") to return the start index, 
which itself is of type Py_ssize_t. This will get truncated on x64 Windows if 
the start is > 2**31. PyInt_FromSsize_t should be used instead. Other usages of 
Py_BuildValue should be reviewed as well.

----------
messages: 119462
nosy: loewis
priority: normal
severity: normal
status: open
title: match_start truncates large values
versions: Python 2.7, Python 3.1, Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10182>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to