New submission from Antoine Pitrou <pit...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue8592> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com