[issue15732] Crash (constructed) in _PySequence_BytesToCharpArray()

2012-08-20 Thread Stefan Krah
New submission from Stefan Krah: Coverity found an unchecked return value in _PySequence_BytesToCharpArray(). Patch attached. A demonstration: import _posixsubprocess class Z(object): def __len__(self): return 1 _posixsubprocess.fork_exec(1,Z(),3,[1,

[issue15732] Crash (constructed) in _PySequence_BytesToCharpArray()

2012-08-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: LGTM. Please apply to all affected branches. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15732 ___

[issue15732] Crash (constructed) in _PySequence_BytesToCharpArray()

2012-08-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset cfddcf964ff0 by Stefan Krah in branch '3.2': Issue #15732: Fix (constructed) crash in _PySequence_BytesToCharpArray(). http://hg.python.org/cpython/rev/cfddcf964ff0 -- nosy: +python-dev ___ Python

[issue15732] Crash (constructed) in _PySequence_BytesToCharpArray()

2012-08-20 Thread Stefan Krah
Stefan Krah added the comment: Thanks for reviewing! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15732