➜

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 drukker
Recipients drukker, loewis
Date 2009-10-07.23:01:41
SpamBayes Score 9.3036885e-09
Marked as misclassified No
Message-id <[email protected]>
In-reply-to
Content
The strxfrm function in the locale module can potentially raise a
MemoryError.

The failing malloc is in Modules/_localemodule.c, line 291.

This is because the variable n0 of type Py_ssize_t is passed to
PyArg_ParseTuple, which expects an int when PY_SSIZE_T_CLEAN is not defined.

Patch attached, which also fixes an unrelated memory leak.
History
Date User Action Args
2009-10-07 23:01:43drukkersetrecipients: + drukker, loewis
2009-10-07 23:01:43drukkersetmessageid: <[email protected]>
2009-10-07 23:01:41drukkerlinkissue7080 messages
2009-10-07 23:01:41drukkercreate