[New-bugs-announce] [issue10182] match_start truncates large values

Martin v. Löwis report at bugs.python.org
Sat Oct 23 20:37:51 CEST 2010


New submission from Martin v. Löwis <martin at 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 <report at bugs.python.org>
<http://bugs.python.org/issue10182>
_______________________________________


More information about the New-bugs-announce mailing list