[issue12881] ctypes: segfault with large structure field names

Meador Inge report at bugs.python.org
Thu Sep 22 05:21:29 CEST 2011


Meador Inge <meadori at gmail.com> added the comment:

I am going to open separate issues for the other crashers.

> Also, PyUnicode_FromFormat could be used instead of sprintf.

Amaury, how so?  'sprintf' and 'stgdict->format' work with 'char *'s 
where as 'PyUnicode_FromFormat' builds a unicode string object.

Unless there are any objections, I am going to commit as is.

----------

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


More information about the Python-bugs-list mailing list