Commits

Author Commit Message Labels Comments Date
Christian Heimes
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
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
Branches
3.2
Senthil Kumaran
Automated merge with file:///home/vagrant/3.2
Branches
2.7
Senthil Kumaran
Fix issue #15899 - howto/unicode.rst doctest corrections for 2.7 branch.
Branches
2.7
Barry Warsaw
- Issue #15906: Fix a regression in argparse caused by the preceding change, when action='append', type='str' and default=[].
Barry Warsaw
- Issue #15906: Fix a regression in argparse caused by the preceding change, when action='append', type='str' and default=[].
Branches
3.2
Barry Warsaw
- Issue #15906: Fix a regression in argparse caused by the preceding change, when action='append', type='str' and default=[].
Branches
2.7
Christian Heimes
Updates NEWS for issue #15895
bitdancer
Merge #14617: clarify discussion of interrelationship of __eq__ and __hash__.
bitdancer
#14617: clarify discussion of interrelationship of __eq__ and __hash__.
Branches
3.2
Benjamin Peterson
merge heads
Benjamin Peterson
remove useless and defined initialization (closes #15921)
Christian Heimes
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
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
Branches
3.2
Christian Heimes
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
Issue #15895: Fix FILE pointer leak in PyRun_SimpleFileExFlags() when filename points to a pyc/pyo file and closeit is false.
Christian Heimes
Spelling past tense -> present tense
Christian Heimes
Issue #15900: Fixed reference leak in PyUnicode_TranslateCharmap()
Senthil Kumaran
merge. Fix issue #15899: Make the unicode.rst doctests pass. Patch by Chris Jerdonek.
Senthil Kumaran
Fix issue #15899: Make the unicode.rst doctests pass. Patch by Chris Jerdonek.
Branches
3.2
bitdancer
#15886: remove redundant phrase
Jesús Cea
MERGE: Closes #15793: Stack corruption in ssl.RAND_egd()
Jesús Cea
Closes #15793: Stack corruption in ssl.RAND_egd()
Branches
3.2
Jesús Cea
Closes #15793: Stack corruption in ssl.RAND_egd(). Python 2.7 hasn't any issue about this, but add a test just to be sure
Branches
2.7
Jesús Cea
MERGE: #15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete (fix 2)
Jesús Cea
#15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete (fix 2)
Branches
3.2
Jesús Cea
#15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete (fix 2)
Branches
2.7
Jesús Cea
#15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete
Jesús Cea
#15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete
Branches
3.2
Jesús Cea
#15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete
Branches
2.7
  1. Prev
  2. Next