3716 Commits (1526582df686a66e15c1944aed13c2ea6b922882)

Author SHA1 Message Date
Christian Heimes 79b97ee2ab 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 14 years ago
Christian Heimes e81dc296f2 Fixed memory leak in error branch of object_repr which may leak a reference to mod when type_name returns NULL. CID 715371 14 years ago
Christian Heimes a0e7e41cba Fixed possible reference leak to mod when type_name() returns NULL 14 years ago
Christian Heimes d5a88044a3 PyTuple_Pack() was missing va_end() in its error branch which lead to a resource leak. 14 years ago
Christian Heimes 949f331731 Py_TYPE() has already dereferenced self before the NULL check. Moved Py_TYPE() after the check for self == NULL 14 years ago
Antoine Pitrou 56cd62c04a Issue #13992: The trashcan mechanism is now thread-safe. This eliminates 14 years ago
Alexander Belopolsky 397e5c98bc Issue #15855: added docstrings for memoryview methods and data descriptors. 14 years ago
Benjamin Peterson 28a6cfaefc use the stricter PyMapping_Check (closes #15801) 14 years ago
Stefan Krah 7cacd2eb92 Issue #15736: Fix overflow in _PySequence_BytesToCharpArray(). 14 years ago
Stefan Krah fd24f9e51e Issue #15732: Fix (constructed) crash in _PySequence_BytesToCharpArray(). 14 years ago
Stefan Krah 6b962860e2 Check for NULL return value in PyStructSequence_NewType(). Found by Coverity. 14 years ago
Nick Coghlan 573b1fd779 Fix str docstring 14 years ago
Antoine Pitrou 6f430e4963 Issue #15604: Update uses of PyObject_IsTrue() to check for and handle errors correctly. 14 years ago
Antoine Pitrou b4bbee25b1 Issue #14579: Fix CVE-2012-2135: vulnerability in the utf-16 decoder after error handling. 14 years ago
Andrew Svetlov ddcb6206bf Issue #15404: Refleak in PyMethodObject repr. 14 years ago
Meador Inge 29e49d6394 Issue #15394: Fix ref leaks in PyModule_Create. 14 years ago
Antoine Pitrou 99cc629969 Issue #15142: Fix reference leak when deallocating instances of types created using PyType_FromSpec(). 14 years ago
Antoine Pitrou a103b96a80 Issue #14829: Fix bisect and range() indexing with large indices (>= 2 ** 32) under 64-bit Windows. 14 years ago
Antoine Pitrou a1433fed8e Remove tab characters 14 years ago
Antoine Pitrou 682d94c11a Use size_t, not ssize_t (issue #14801). 14 years ago
Benjamin Peterson 89a6e9a27b fix possible refleak (closes #14752) 14 years ago
Benjamin Peterson ab3da290fe close() doesn't take any args (closes #14717) 14 years ago
Benjamin Peterson 7295c6a871 fix calling the classmethod descriptor directly (closes #14699) 14 years ago
Benjamin Peterson 7b1668735a don't use a slot wrapper from a different special method (closes #14658) 14 years ago
Mark Dickinson bcc17eefd2 Issue #14630: Fix an incorrect access of ob_digit[0] for a zero instance of an int subclass. 14 years ago
Benjamin Peterson e42fb307ed SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno (closes #14612) 14 years ago
Benjamin Peterson f6622c8a3e fix build without Py_DEBUG and DNDEBUG (closes #14509) 14 years ago
Benjamin Peterson b6af60c2a9 adjust formatting 14 years ago
Benjamin Peterson 3471bb67e7 remove extraneous condition 14 years ago
Benjamin Peterson ab3c1c1994 be consistent with rest of function 14 years ago
Antoine Pitrou 58bb82e7b4 Issue #13019: Fix potential reference leaks in bytearray.extend(). 14 years ago
Benjamin Peterson a8755c586e kill this terribly outdated comment 14 years ago
Antoine Pitrou 0197ff97d0 Issue #14387: Do not include accu.h from Python.h. 14 years ago
Benjamin Peterson 16d84ac355 check to make sure the attribute is a string (#14334) 14 years ago
Benjamin Peterson 52c424343d allow cycles throught the __dict__ slot to be cleared (closes #1469629) 14 years ago
Antoine Pitrou e965d97ed1 Issue #13521: dict.setdefault() now does only one lookup for the given key, making it "atomic" for many purposes. 14 years ago
Benjamin Peterson 69e9727657 ensure no one tries to hash things before the random seed is found 14 years ago
Georg Brandl 2daf6ae249 Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime) 14 years ago
Benjamin Peterson 496c53d83e use Py_CLEAR 14 years ago
Antoine Pitrou 4b3c7846c9 Fix indentation 14 years ago
Antoine Pitrou 37784ba5c0 Issue #13020: Fix a reference leak when allocating a structsequence object fails. 14 years ago
Victor Stinner cbe01342bc Issue #13913: normalize utf-8 codec name in UTF-8 decoder 14 years ago
Benjamin Peterson efe7c9d4d7 this is only a borrowed ref in Brett's branch 14 years ago
Benjamin Peterson 2f9c71bbba bltinmod is borrowed, so it shouldn't be decrefed 14 years ago
Benjamin Peterson 90b13583bc put returns on their own lines 14 years ago
Benjamin Peterson 2652d2570e ready types returned from PyType_FromSpec 14 years ago
Benjamin Peterson e28108cbd7 adjust declaration 14 years ago
Antoine Pitrou 1334884ff2 Issue #13848: open() and the FileIO constructor now check for NUL characters in the file name. 14 years ago
Mark Dickinson 261896b559 Issue #13889: Add missing _Py_SET_53BIT_PRECISION_* calls around uses of dtoa.c functions in float round. 14 years ago
Georg Brandl beca27a394 Fix #13834: strip() strips leading and trailing whitespace. 14 years ago