homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc
Date 2011年08月16日.20:21:56
SpamBayes Score 1.3871307e-06
Marked as misclassified No
Message-id <1313526117.08.0.584705454362.issue12764@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011年08月16日 20:21:57amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc
2011年08月16日 20:21:57amaury.forgeotdarcsetmessageid: <1313526117.08.0.584705454362.issue12764@psf.upfronthosting.co.za>
2011年08月16日 20:21:56amaury.forgeotdarclinkissue12764 messages
2011年08月16日 20:21:56amaury.forgeotdarccreate

AltStyle によって変換されたページ (->オリジナル) /