Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-31530: stop crashes when iterating over a file on multiple threadsbenjamin-iteration-torture | Benjamin Peterson | 2017-09-20 | 1 | -38/+67 |
| | | | | | | | | | | | Multiple threads iterating over a file can corrupt the file's internal readahead buffer resulting in crashes. To fix this, cache buffer state thread-locally for the duration of a file_iternext call and only update the file's internal state after reading completes. No attempt is made to define or provide "reasonable" semantics for iterating over a file on multiple threads. (Non-crashing) races are still present. Duplicated, corrupt, and missing data will happen. | ||||
* | consistently use Py_TYPE, Py_REFCNT, and correct initializer macros (#3563) | Benjamin Peterson | 2017-09-14 | 10 | -100/+87 |
| | | | This no-op change makes 2.7 more consistent with 3.x to ease comparison and backports. | ||||
* | bpo-31095: Fix potential crash during GC (GH-3197) | INADA Naoki | 2017-09-04 | 2 | -0/+8 |
| | | | (cherry picked from commit a6296d34a478b4f697ea9db798146195075d496c) | ||||
* | bpo-29902: Emit a Py3k deprecation warning when pickling or copying (#2823) | Serhiy Storchaka | 2017-08-02 | 1 | -0/+23 |
| | | | | | | some builtin and extension objects that don't support pickling explicitly and are pickled incorrectly by default (like memoryview or staticmethod). | ||||
* | [2.7] bpo-30657: Check & prevent integer overflow in PyString_DecodeEscape ↵ | Jay Bosamiya | 2017-06-18 | 1 | -1/+7 |
| | | | | (#2174) | ||||
* | [2.7] bpo-27945: Fixed various segfaults with dict. (GH-1657) (#1681) | Serhiy Storchaka | 2017-05-20 | 1 | -14/+31 |
| | | | | | Based on patches by Duane Griffin and Tim Mitchell. (cherry picked from commit 753bca3934a7618a4fa96e107ad1c5c18633a683) | ||||
* | [2.7] bpo-25794: Fix `type.__setattr__()` for non-interned or unicode ↵ | Serhiy Storchaka | 2017-05-20 | 1 | -5/+38 |
| | | | | | | attribute names. (GH-1652) (#1675) Based on patch by Eryk Sun. (cherry picked from commit d896985bb2de49046f9b6879e906d1e4db255e23) | ||||
* | bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1531) (#1480) | Xiang Zhang | 2017-05-10 | 1 | -3/+5 |
| | |||||
* | bpo-30255: Clip step in _PySlice_Unpack() (#1429) | Victor Stinner | 2017-05-03 | 1 | -0/+7 |
| | | | | | | In PySlice_IndicesEx, clip the step to [-PY_SSIZE_T_MAX, PY_SSIZE_T_MAX] rather than [PY_SSIZE_T_MIN, PY_SSIZE_T_MAX]. (cherry picked from commit e6fc7401a92c7b51a80782d8095819b9909a0322) | ||||
* | bpo-30074: Fix compile warnings of _PySlice_Unpack and convert missed (#1154) | Serhiy Storchaka | 2017-04-15 | 8 | -13/+13 |
| | | | | PySlice_GetIndicesEx in _ctypes.c. | ||||
* | bpo-27867: Expand the PySlice_GetIndicesEx macro. (#1023) (#1046) | Serhiy Storchaka | 2017-04-08 | 8 | -27/+31 |
| | | | | (cherry picked from commit b879fe8) | ||||
* | bpo-29935: Fixed error messages in the index() method of tuple and list ↵ | Serhiy Storchaka | 2017-03-30 | 2 | -4/+4 |
| | | | | | | | (#887) (#907) (#910) when pass indices of wrong type. (cherry picked from commit d4edfc9abffca965e76ebc5957a92031a4d6c4d4) (cherry picked from commit bf4bb2e43030661e568d5d4b046e8b9351cc164c) | ||||
* | bpo-29602: fix signed zero handling in complex constructor (#204) | Mark Dickinson | 2017-02-20 | 1 | -3/+3 |
| | | | | | | * bpo-29602: fix signed zero handling in complex constructor * Add missing have_getformat definition; remove use of unittest subtests. | ||||
* | bpo-29347: Fix possibly dereferencing undefined pointers when creating ↵ | Xiang Zhang | 2017-02-20 | 1 | -0/+2 |
| | | | | weakref objects (#128) (#187) | ||||
* | Issue #29028: Fixed possible use-after-free bugs in the subscription of the | Serhiy Storchaka | 2017-02-01 | 1 | -29/+48 |
| | | | | buffer object with custom index object. | ||||
* | Issue #27867: Replaced function PySlice_GetIndicesEx() with a macro. | Serhiy Storchaka | 2017-01-25 | 1 | -23/+55 |
| | |||||
* | Issue #29145: Fix overflow checks in string, bytearray and unicode. | Xiang Zhang | 2017-01-09 | 3 | -74/+51 |
| | | | | Patch by jan matejek and Xiang Zhang. | ||||
* | Issue #28427: old keys should not remove new values from | Antoine Pitrou | 2016-12-27 | 1 | -10/+55 |
| | | | | WeakValueDictionary when collecting from another thread. | ||||
* | Issue #28998: More APIs now support longs as well as ints. | Serhiy Storchaka | 2016-12-27 | 1 | -2/+5 |
| | |||||
* | Issue #29019: Fix dict.fromkeys(x) overallocates when x is sparce dict. | INADA Naoki | 2016-12-20 | 1 | -1/+1 |
| | | | | Original patch by Rasmus Villemoes. | ||||
* | revert a37cc3d926ec (#5322) | Benjamin Peterson | 2016-12-14 | 1 | -27/+1 |
| | |||||
* | Backed out changeset ea904d4b3634 | Benjamin Peterson | 2016-12-14 | 1 | -1/+1 |
| | |||||
* | fix refleak in reduce_2 error case | Benjamin Peterson | 2016-12-03 | 1 | -1/+1 |
| | |||||
* | fix refleak in the shift-by-zero case (#27870) | Benjamin Peterson | 2016-12-03 | 1 | -5/+6 |
| | |||||
* | declarations to the top of the block | Benjamin Peterson | 2016-12-02 | 1 | -1/+1 |
| | |||||
* | Issue #5322: Fixed setting __new__ to a PyCFunction inside Python code. | Serhiy Storchaka | 2016-12-02 | 1 | -1/+27 |
| | | | | Original patch by Andreas Stührk. | ||||
* | Issue #11145: Fixed miscellaneous issues with C-style formatting of types | Serhiy Storchaka | 2016-12-01 | 1 | -69/+85 |
| | | | | with custom __oct__ and __hex__. | ||||
* | Issue #24469: Fixed memory leak caused by int subclasses without overridden | Serhiy Storchaka | 2016-11-29 | 1 | -8/+0 |
| | | | | tp_free (e.g. C-inherited Cython classes). | ||||
* | Issue #27942: Fix memory leak in codeobject.c | Yury Selivanov | 2016-11-09 | 1 | -0/+2 |
| | |||||
* | Issue #26906: Resolving special methods of uninitialized type now causes | Serhiy Storchaka | 2016-10-08 | 1 | -5/+19 |
| | | | | implicit initialization of the type instead of a fail. | ||||
* | Silenced compiler warnings. | Serhiy Storchaka | 2016-10-08 | 1 | -1/+0 |
| | |||||
* | Issue #18287: PyType_Ready() now checks that tp_name is not NULL. | Serhiy Storchaka | 2016-10-07 | 1 | -0/+6 |
| | | | | Original patch by Niklas Koep. | ||||
* | Issue #28350: String constants with null character no longer interned. | Serhiy Storchaka | 2016-10-04 | 1 | -5/+8 |
| | |||||
* | Issue #27942: String constants now interned recursively in tuples and ↵ | Serhiy Storchaka | 2016-09-30 | 1 | -9/+45 |
| | | | | frozensets. | ||||
* | Issue #28139: Fix messed up indentation | Martin Panter | 2016-09-17 | 5 | -39/+43 |
| | | | | | Also update the classmethod and staticmethod doc strings and comments to match the RST documentation. | ||||
* | Correct occurance → occurrence; extracted from patch by Georg Brandl | Martin Panter | 2016-09-08 | 2 | -3/+3 |
| | |||||
* | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Martin Panter | 2016-09-07 | 4 | -4/+4 |
| | |||||
* | promote some shifts to unsigned, so as not to invoke undefined behavior | Benjamin Peterson | 2016-09-07 | 1 | -2/+2 |
| | |||||
* | make sure to not call memcpy with a NULL second argument | Benjamin Peterson | 2016-09-07 | 1 | -6/+9 |
| | |||||
* | Issue #27870: A left shift of zero by a large integer no longer attempts to ↵ | Mark Dickinson | 2016-08-29 | 1 | -0/+5 |
| | | | | allocate large amounts of memory. | ||||
* | Issue #25604: Fix bug in integer true division that could have resulted in ↵ | Mark Dickinson | 2016-08-21 | 1 | -2/+2 |
| | | | | off-by-one-ulp results in unusual cases. | ||||
* | Fix a refleak in call_maybe() | Victor Stinner | 2016-08-19 | 1 | -1/+3 |
| | | | | | Issue #27128. Fix a reference leak if creating the tuple to pass positional parameters fails. | ||||
* | Fix a refleak in call_method() | Victor Stinner | 2016-08-19 | 1 | -1/+3 |
| | | | | | Issue #27128. Fix a reference leak if creating the tuple to pass positional parameters fails. | ||||
* | Spelling and grammar fixes in code comments and documentation | Martin Panter | 2016-07-28 | 2 | -2/+2 |
| | |||||
* | Issue #27626: Spelling fixes in docs, comments and internal names | Martin Panter | 2016-07-28 | 2 | -5/+5 |
| | | | | Based on patch by Ville Skyttä. | ||||
* | Issue #27581: Don’t rely on overflow wrapping in PySequence_Tuple() | Martin Panter | 2016-07-25 | 1 | -4/+5 |
| | | | | Patch by Xiang Zhang. | ||||
* | Issue #27507: Check for integer overflow in bytearray.extend() | Martin Panter | 2016-07-18 | 1 | -1/+11 |
| | | | | Patch by Xiang Zhang. | ||||
* | Issue #27473: Fixed possible integer overflow in str, unicode and bytearray | Serhiy Storchaka | 2016-07-12 | 3 | -21/+26 |
| | | | | concatenations and repetitions. Based on patch by Xiang Zhang. | ||||
* | Issue #25523: Correct "a" article to "an" article | Martin Panter | 2015-11-02 | 1 | -1/+1 |
| | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed to fix the grammar. | ||||
* | fix refleaks in PyDict_SetItem error cases (closes #27248) | Benjamin Peterson | 2016-07-07 | 1 | -3/+9 |
| |