Message100445
Here is a fix for object.c (object_pyunicode_asstring-py3k.patch):
- PyObject_GenericGetAttr(): Replace PyErr_Format("... %.400s", ..., _PyUnicode_AsString(name)) by PyErr_Format("... %U", ..., name), as done in PyObject_GenericSetAttr(). Note that the string will no more be truncated to 400 bytes
- PyObject_GetAttr(), PyObject_SetAttr(): Catch _PyUnicode_AsString() error
It fixes the crash getattr(1, "\uDAD1\uD51E") (used as a test in the patch). |
|
Date |
User |
Action |
Args |
2010-03-05 01:02:05 | vstinner | set | recipients:
+ vstinner, lemburg, loewis, amaury.forgeotdarc, ezio.melotti, Arfrever |
2010-03-05 01:02:04 | vstinner | set | messageid: <1267750924.63.0.535205045403.issue6697@psf.upfronthosting.co.za> |
2010-03-05 01:02:02 | vstinner | link | issue6697 messages |
2010-03-05 01:02:02 | vstinner | create | |
|