[New-bugs-announce] [issue20777] PyArg_ParseTupleAndKeywords does not respect arguments format.
Carlos Ferreira
report at bugs.python.org
Wed Feb 26 04:25:15 CET 2014
New submission from Carlos Ferreira:
PyArg_ParseTupleAndKeywords is not respecting the format string "sy*ss"
When using the format "sbss" with the following valid arguments
"enp0s8", 0, "08:00:27:da:b3:47", "08:00:27:11:22:33"
there is no error and the function succeeds in parsing the arguments.
But when passing the following valid arguments,
"8bf2f93c-8f44-4960-a2de-71f87130882e", bytes(list([0,0,0,1])), "08:00:27:11:22:33", "10.0.0.3"
it will fail stating that the 3rd argument has a null character.
----------
components: Extension Modules
messages: 212236
nosy: Claymore
priority: normal
severity: normal
status: open
title: PyArg_ParseTupleAndKeywords does not respect arguments format.
type: behavior
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20777>
_______________________________________
More information about the New-bugs-announce
mailing list