STINNER Victor <victor.stin...@haypocalc.com> added the comment: ... and issue9566.patch: various fixes. Interesting parts:
--- - id = PyLong_FromLong((Py_uintptr_t) self); + id = PyLong_FromVoidPtr(self); --- --- LOCAL(PyObject*) -expat_parse(XMLParserObject* self, char* data, int data_len, int final) +expat_parse(XMLParserObject* self, char* data, Py_ssize_t data_len, int final) { int ok; - ok = EXPAT(Parse)(self->parser, data, data_len, final); + if (data_len > INT_MAX) { + PyErr_SetString(PyExc_OverflowError, "length doesn't fit in an int"); + return NULL; + } + + ok = EXPAT(Parse)(self->parser, data, (int)data_len, final); --- --- - long hash = PyObject_Hash(arg); + Py_hash_t hash = PyObject_Hash(arg); --- ---------- Added file: http://bugs.python.org/file20350/issue9566.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9566> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com