[New-bugs-announce] [issue8592] 'y' does not check for embedded NUL bytes

Antoine Pitrou report at bugs.python.org
Sat May 1 20:04:35 CEST 2010


New submission from Antoine Pitrou <pitrou at free.fr>:

The documentation for the 'y' format (PyArg_ParseTuple and friends) states that:

« The bytes object must not contain embedded NUL bytes; if it does, a TypeError exception is raised. »

But, reading Python/getargs.c, the strlen() check is actually missing in the code for 'y'.

----------
assignee: loewis
components: Interpreter Core
messages: 104734
nosy: loewis, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: 'y' does not check for embedded NUL bytes
type: behavior
versions: Python 3.1, Python 3.2

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


More information about the New-bugs-announce mailing list