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,
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
___
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
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