[issue10182] match_start truncates large values
Serhiy Storchaka
report at bugs.python.org
Sun Oct 21 00:17:25 CEST 2012
Serhiy Storchaka added the comment:
I analyzed all 1-valued usages of Py_BuildValue and found similar bags only in Modules/_sre.h. Here is a patch.
Bugs should be evident on big-endian platform with sizeof(int) < sizeof(size_t) or sizeof(long) < sizeof(size_t). Standard tests should fail on such platforms.
----------
keywords: +patch
versions: +Python 3.4
Added file: http://bugs.python.org/file27642/buildvalue_overflow.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10182>
_______________________________________
More information about the Python-bugs-list
mailing list