Message142218
| 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: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 |
|