3740 Commits

Author SHA1 Message Date
Jay Bosamiya
c3c9db8927 [2.7] bpo-30657: Check & prevent integer overflow in PyString_DecodeEscape (#2174) 2017-06-18 19:41:03 +03:00
Serhiy Storchaka
e6a0b59829 [2.7] bpo-27945: Fixed various segfaults with dict. (GH-1657) (#1681)
Based on patches by Duane Griffin and Tim Mitchell.
(cherry picked from commit 753bca3934)
2017-05-20 20:05:27 +03:00
Serhiy Storchaka
e9f9b04278 [2.7] bpo-25794: Fix type.__setattr__() for non-interned or unicode attribute names. (GH-1652) (#1675)
Based on patch by Eryk Sun.
(cherry picked from commit d896985bb2)
2017-05-20 10:04:53 +03:00
Xiang Zhang
05469fa1c0 bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1531) (#1480) 2017-05-10 19:20:28 +08:00
Victor Stinner
f6a3133972 bpo-30255: Clip step in _PySlice_Unpack() (#1429)
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 e6fc7401a9)
2017-05-03 16:00:12 +02:00
Serhiy Storchaka
5e79321742 bpo-30074: Fix compile warnings of _PySlice_Unpack and convert missed (#1154)
PySlice_GetIndicesEx in _ctypes.c.
2017-04-15 20:11:12 +03:00
Serhiy Storchaka
e41390aca5 bpo-27867: Expand the PySlice_GetIndicesEx macro. (#1023) (#1046)
(cherry picked from commit b879fe8)
2017-04-08 11:48:57 +03:00
Serhiy Storchaka
079f21f873 bpo-29935: Fixed error messages in the index() method of tuple and list (#887) (#907) (#910)
when pass indices of wrong type.
(cherry picked from commit d4edfc9abf)
(cherry picked from commit bf4bb2e430)
2017-03-30 20:32:18 +03:00
Mark Dickinson
c0b336e0ad bpo-29602: fix signed zero handling in complex constructor (#204)
* bpo-29602: fix signed zero handling in complex constructor

* Add missing have_getformat definition; remove use of unittest subtests.
2017-02-20 21:14:52 +00:00
Xiang Zhang
7131a73f96 bpo-29347: Fix possibly dereferencing undefined pointers when creating weakref objects (#128) (#187) 2017-02-20 14:32:53 +08:00
Serhiy Storchaka
8e21cc3ce0 Issue #29028: Fixed possible use-after-free bugs in the subscription of the
buffer object with custom index object.
2017-02-01 22:47:44 +02:00
Serhiy Storchaka
3efe32ed48 Issue #27867: Replaced function PySlice_GetIndicesEx() with a macro. 2017-01-25 13:22:06 +02:00
Xiang Zhang
7bdb516059 Issue #29145: Fix overflow checks in string, bytearray and unicode.
Patch by jan matejek and Xiang Zhang.
2017-01-09 11:13:20 +08:00
Antoine Pitrou
f939b3c0f7 Issue #28427: old keys should not remove new values from
WeakValueDictionary when collecting from another thread.
2016-12-27 15:08:27 +01:00
Serhiy Storchaka
994f04dbf5 Issue #28998: More APIs now support longs as well as ints. 2016-12-27 15:09:36 +02:00
INADA Naoki
e126f98658 Issue #29019: Fix dict.fromkeys(x) overallocates when x is sparce dict.
Original patch by Rasmus Villemoes.
2016-12-20 16:07:18 +09:00
Benjamin Peterson
4403d501ac revert a37cc3d926ec (#5322) 2016-12-13 23:30:16 -08:00
Benjamin Peterson
d1aad3fceb Backed out changeset ea904d4b3634 2016-12-13 23:27:56 -08:00
Benjamin Peterson
f8f2138bd4 fix refleak in reduce_2 error case 2016-12-03 12:08:24 -08:00
Benjamin Peterson
445844993b fix refleak in the shift-by-zero case (#27870) 2016-12-03 11:01:50 -08:00
Benjamin Peterson
cffc0f4178 declarations to the top of the block 2016-12-02 00:02:24 -08:00
Serhiy Storchaka
daf82f7539 Issue #5322: Fixed setting __new__ to a PyCFunction inside Python code.
Original patch by Andreas Stührk.
2016-12-02 08:42:43 +02:00
Serhiy Storchaka
c30f27d1f2 Issue #11145: Fixed miscellaneous issues with C-style formatting of types
with custom __oct__ and __hex__.
2016-12-01 10:27:11 +02:00
Serhiy Storchaka
13cc67946b Issue #24469: Fixed memory leak caused by int subclasses without overridden
tp_free (e.g. C-inherited Cython classes).
2016-11-29 20:49:14 +02:00
Yury Selivanov
48aa605337 Issue #27942: Fix memory leak in codeobject.c 2016-11-09 09:41:15 -05:00