[New-bugs-announce] [issue15732] Crash (constructed) in _PySequence_BytesToCharpArray()

Stefan Krah report at bugs.python.org
Mon Aug 20 09:43:41 CEST 2012


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, 2],5,6,7,8,9,10,11,12,13,14,15,16,17)

----------
components: Interpreter Core
files: bytes_to_charp_array.diff
keywords: patch
messages: 168633
nosy: skrah
priority: normal
severity: normal
stage: patch review
status: open
title: Crash (constructed) in _PySequence_BytesToCharpArray()
type: crash
versions: Python 3.3
Added file: http://bugs.python.org/file26919/bytes_to_charp_array.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15732>
_______________________________________


More information about the New-bugs-announce mailing list