- 12 Sep, 2012 14 commits
-
-
Stefan Krah authored
-
Barry Warsaw authored
-
Barry Warsaw authored
-
Barry Warsaw authored
on the action's default, reverting it back to previous behavior. Conversion is only done on string defaults. Add a test for this and another test that ensures such type conversions are only called once.
-
Antoine Pitrou authored
-
Antoine Pitrou authored
-
Christian Heimes authored
Cleanup 'k' when the creation of PySTEntryObject fails. ad3824a90261 used to decref 'k' in too many error cases.
-
Christian Heimes authored
Cleanup 'k' when the creation of PySTEntryObject fails. ad3824a90261 used to decref 'k' in too many error cases.
-
Christian Heimes authored
-
Christian Heimes authored
-
Christian Heimes authored
Fix out of bounds read in long_new() for empty bytes with an explicit base. int(b'', somebase) calls PyLong_FromString() with char* of length 1 but the function accesses the first argument at offset 1. CID 715359
-
Christian Heimes authored
Fix out of bounds read in long_new() for empty bytes with an explicit base. int(b'', somebase) calls PyLong_FromString() with char* of length 1 but the function accesses the first argument at offset 1. CID 715359
-
Barry Warsaw authored
when action='append', type='str' and default=[].
-
Barry Warsaw authored
when action='append', type='str' and default=[].
-
- 11 Sep, 2012 16 commits
-
-
Christian Heimes authored
-
R David Murray authored
-
R David Murray authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Christian Heimes authored
Fix null pointer dereferencing in structmember.c PyMember_SetOne() for T_CHAR. _PyUnicode_AsStringAndSize() can return NULL without touching the len argument. Also remove unnecessary PyUnicode_Check(), _PyUnicode_AsStringAndSize() performance the test again. CID 486815
-
Christian Heimes authored
Fix null pointer dereferencing in structmember.c PyMember_SetOne() for T_CHAR. _PyUnicode_AsStringAndSize() can return NULL without touching the len argument. Also remove unnecessary PyUnicode_Check(), _PyUnicode_AsStringAndSize() performance the test again. CID 486815
-
Christian Heimes authored
Issue #15895: my analysis was slightly off. The FILE pointer is only leaked when set_main_loader() fails for a pyc file with closeit=0. In the success case run_pyc_file() does its own cleanup of the fp. I've changed the code to use another FILE ptr for pyc files and moved the fclose() to PyRun_SimpleFileExFlags() to make it more obvious what's happening.
-
Christian Heimes authored
Issue #15895: Fix FILE pointer leak in PyRun_SimpleFileExFlags() when filename points to a pyc/pyo file and closeit is false.
-
Christian Heimes authored
-
Christian Heimes authored
-
Senthil Kumaran authored
-
Senthil Kumaran authored
-
R David Murray authored
-
Jesus Cea authored
-
Jesus Cea authored
-
- 10 Sep, 2012 10 commits
-
-
Jesus Cea authored
MERGE: #15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete (fix 2)
-
Jesus Cea authored
-
Jesus Cea authored
-
Jesus Cea authored
-
Jesus Cea authored
-
Jesus Cea authored
-
Stefan Krah authored
constructing infinities. This is done for backwards compatibility with decimal.py: Infinity coefficients are undefined in _decimal (in accordance with the specification).
-
Christian Heimes authored
Fixed reference leak in error branch of _bufferedreader_read_all(). The variable data can contain a bytes object but it wasn't cleaned up when PyList_New() failed. CID 715364
-
Christian Heimes authored
Fixed memory leak in error branch of object_repr which may leak a reference to mod when type_qualname returns NULL. CID 715371
-
Christian Heimes authored
Fixed memory leak in error branch of object_repr which may leak a reference to mod when type_name returns NULL. CID 715371
-