Message142218
This crashes on python 3.3::
class S(ctypes.Structure):
_fields_ = [(b'x', ctypes.c_int)]
This also crashes on python 2.7::
class S(ctypes.Structure):
_fields_ = [(u'x\xe9', ctypes.c_int)]
The cause is the same: in Modules/_ctypes/stgdict.c, the assignment
fieldname = _PyUnicode_AsString(name);
does not check for errors. |
|
Date |
User |
Action |
Args |
2011-08-16 20:21:57 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc |
2011-08-16 20:21:57 | amaury.forgeotdarc | set | messageid: <1313526117.08.0.584705454362.issue12764@psf.upfronthosting.co.za> |
2011-08-16 20:21:56 | amaury.forgeotdarc | link | issue12764 messages |
2011-08-16 20:21:56 | amaury.forgeotdarc | create | |
|