[New-bugs-announce] [issue16153] PyUnicode_FromFormatV() must fail if the format string is invalid
STINNER Victor
report at bugs.python.org
Sat Oct 6 23:56:21 CEST 2012
New submission from STINNER Victor:
If the format string is invalid, PyUnicode_FromFormatV() formats the valid arguments and then copies the raw format string. Errors are silently ignored.
I propose to raise a ValueError if the format string is invalid. This change may "break" existing applications, but I hope that nobody relies on this "bug" :-)
Attached patch implements my proposition.
----------
files: invalid_format.patch
keywords: patch
messages: 172250
nosy: haypo
priority: normal
severity: normal
status: open
title: PyUnicode_FromFormatV() must fail if the format string is invalid
versions: Python 3.4
Added file: http://bugs.python.org/file27461/invalid_format.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16153>
_______________________________________
More information about the New-bugs-announce
mailing list