[issue10833] Replace %.100s by %s in PyErr_Format(): the arbitrary limit of 500 bytes is outdated

STINNER Victor report at bugs.python.org
Wed Jan 5 04:10:13 CET 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

use_format.patch is a patch to avoid PyOS_snprintf() with a fixed buffer: use directly PyUnicode_FromFormat(), PyErr_Format() or PySys_FormatStderr() instead. This patch is just a draft, it should be tested :-) There are other calls to PyOS_snprintf() that can be replaced.

----------
keywords: +patch
Added file: http://bugs.python.org/file20267/use_format.patch

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


More information about the Python-bugs-list mailing list