- 11 Jul, 2013 37 commits
-
-
Victor Stinner authored
-
Victor Stinner authored
allocating a bigger table failed PyMemoTable destructor does crash if mt_table is NULL.
-
Victor Stinner authored
memory allocation failure Replace also PyMem_Free() with PyMem_FREE() to be consistent with the rest of the function.
-
Victor Stinner authored
fails with an assertion error
-
Victor Stinner authored
exception (when getting NULL) to an assertion to detect bugs earlier
-
Victor Stinner authored
the newly created pickler, and not PyObject_GC_Del().
-
Victor Stinner authored
-
Victor Stinner authored
raised if the result is NULL to help to find bugs in C mode (get the error earlier than the SystemError in ceval.c).
-
Victor Stinner authored
The caller gets an error code and can raise a classic Python exception.
-
Victor Stinner authored
* create_new_element() initializes all attributes before handling errors, to fix a crash in the destructor * create_new_element() calls PyObject_GC_Del() on error, instead of PyObject_Del(), because the object was created by PyObject_GC_New() * subelement() now handles create_new_element() failure * element_getattro() now handles element_get_text() failure * makeuniversal() now handles PyBytes_FromStringAndSize() failure
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
attributes before handling errors _Pickler_New() now calls PyObject_GC_Del() instead of Py_DECREF() on error, because the pickle object is created using PyObject_GC_New(). Fix a crash in the destructor when an attribute is not initiallized.
-
Victor Stinner authored
The caller gets an error code and can raise a classic Python exception.
-
Victor Stinner authored
-
Victor Stinner authored
If an attribute is not initialized, the destructor can crash
-
Victor Stinner authored
type->tp_str must not point to slot_tp_str() if type has no __str__ attribute, so there is no reason for slot_tp_str() to fallback on slot_tp_str() on lookup error. Moreover, calling PyErr_Clear() may hide a real bug like MemoryError. If __str__ attribute is removed, slots must be updated (which is done by type_setattro()).
-
Victor Stinner authored
-
R David Murray authored
-
R David Murray authored
The problem was I was only checking for decimal digits after the third '?', not for *hex* digits :(. This changeset also fixes a couple of comment typos, deletes an unused function relating to encoded word parsing, and removed an invalid 'if' test from the folding function that was revealed by the tests written to validate this issue.
-
Serhiy Storchaka authored
more bytes than requested.
-
Serhiy Storchaka authored
more bytes than requested.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
do with byte strings. Added tests for Tcl.split() and Tcl.splitline().
-
Serhiy Storchaka authored
do with byte strings. Added tests for Tcl.split() and Tcl.splitline().
-
Serhiy Storchaka authored
not to stderr. Patch by Berker Peksag and Michael Dickens.
-
R David Murray authored
-
R David Murray authored
Patch by Dmi Baranov.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Christian Heimes authored
-
Christian Heimes authored
-
Christian Heimes authored
PyModule_GetDef() returns an error.
-
Christian Heimes authored
PyModule_GetDef() returns an error.
-
- 10 Jul, 2013 3 commits
-
-
R David Murray authored
Also fixes a resource warning that occurred when the fallback is taken. Patch by Serhiy Storchaka. (We couldn't figure out how to write tests for this.)
-
R David Murray authored
-
R David Murray authored
-