[issue17928] PowerLinux getargs.c FETCH_SIZE endianness bug

2013-05-16 Thread jan matejek
jan matejek added the comment: hmm, but it's caused by a private patch claiming that _testcapimodule.c is PY_SSIZE_T_CLEAN. sorry for the noise. -- ___ Python tracker ___ __

[issue17928] PowerLinux getargs.c FETCH_SIZE endianness bug

2013-05-16 Thread jan matejek
jan matejek added the comment: The fix causes regression on my 64bit little-endian machine. It seems that while parsing the arguments, the length value overwrites part of the string pointer. -- nosy: +matejcik ___ Python tracker

[issue17928] PowerLinux getargs.c FETCH_SIZE endianness bug

2013-05-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed. _testcapi was actually the culprit. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue17928] PowerLinux getargs.c FETCH_SIZE endianness bug

2013-05-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset a199ec80c679 by Antoine Pitrou in branch '2.7': Issue #17928: Fix test_structmembers on 64-bit big-endian machines. http://hg.python.org/cpython/rev/a199ec80c679 -- nosy: +python-dev ___ Python tracker <

[issue17928] PowerLinux getargs.c FETCH_SIZE endianness bug

2013-05-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is it 2.7-only? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17928] PowerLinux getargs.c FETCH_SIZE endianness bug

2013-05-07 Thread David Edelsohn
New submission from David Edelsohn: Another endianness bug that causes a failure in test_structmembers.py. _testcapi reports "string too long" because getargs.c:PyArg_ParseTupleAndKeywords() incorrectly returns a huge value for string_len. The problem is FETCH_ARGS is passing the wrong type t