5379 Commits

Author SHA1 Message Date
Serhiy Storchaka
a7c0264735 [3.5] bpo-30730: Prevent environment variables injection in subprocess on Windows. (GH-2325) (#2361)
Prevent passing other invalid environment variables and command arguments..
(cherry picked from commit d174d24a5d)
2017-06-23 20:27:02 +03:00
Serhiy Storchaka
2f7f533cf6 [3.5] bpo-27945: Fixed various segfaults with dict. (GH-1657) (#1678)
Based on patches by Duane Griffin and Tim Mitchell.
(cherry picked from commit 753bca3934)
2017-05-20 13:06:47 +03:00
Serhiy Storchaka
4a86fe9d3f [3.5] bpo-25794: Fix type.__setattr__() for non-interned attribute names. (GH-1652) (#1674)
Based on patch by Eryk Sun.
(cherry picked from commit d896985bb2)
2017-05-20 10:23:58 +03:00
Xiang Zhang
639e295650 bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1530) (#1480) 2017-05-10 19:11:09 +08:00
Serhiy Storchaka
17db4b99b4 [3.5] bpo-29802: Fix the cleaning up issue in PyUnicode_FSDecoder(). (GH-1217) (#1219)
(cherry picked from commit 7a113a0)
2017-04-21 10:55:54 +03:00
Serhiy Storchaka
e63af29c87 [3.5] bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (GH-1096) (GH-1180) (#1182)
raised an error.

(cherry picked from commit bf623ae884)
(cherry picked from commit 680fea4067)
2017-04-19 22:09:56 +03:00
Serhiy Storchaka
e63f8f293a bpo-29998: Pickling and copying ImportError now preserves name and path (#1010) (#1043)
attributes.
(cherry picked from commit b785396ab4)
2017-04-08 11:26:03 +03:00
Serhiy Storchaka
fa25f16a44 Expand the PySlice_GetIndicesEx macro. (#1023) (#1045)
(cherry picked from commit b879fe82e7)
2017-04-08 11:18:30 +03:00
T. Wouters
553275d125 bpo-29941: Assert fixes (#886) (#956)
Make a non-Py_DEBUG, asserts-enabled build of CPython possible. This means
making sure helper functions are defined when NDEBUG is not defined, not
just when Py_DEBUG is defined.

Also fix a division-by-zero in obmalloc.c that went unnoticed because in
Py_DEBUG mode, elsize is never zero.

(cherry picked from commit a00c3fd12d and 06bb4873d6)
2017-04-01 20:20:24 -07:00
Serhiy Storchaka
8b8bde44f3 bpo-29935: Fixed error messages in the index() method of tuple, list and deque (#887) (#907) (#909)
when pass indices of wrong type.
(cherry picked from commit d4edfc9abf)
(cherry picked from commit bf4bb2e430)
2017-03-30 20:31:46 +03:00
Serhiy Storchaka
4276068fe5 bpo-28876: bool of large range raises OverflowError (#699) (#735)
(cherry picked from commit e46fb86118)
2017-03-20 09:37:31 +02:00
Serhiy Storchaka
2c5b2c3832 bpo-29116: Fix error messages for concatenating bytes and bytearray with unsupported type. (#709) (#724)
(cherry picked from commit 6b5a9ec478)
2017-03-19 21:06:44 +02:00
Yury Selivanov
216803d8e1 Fix wrapping into StopIteration of return values in generators and coroutines (#644) (#648) 2017-03-12 17:03:46 -04:00
Mark Dickinson
0936a00fe0 bpo-29602: fix signed zero handling in complex constructor. (#203) (#205)
* Fix incorrect handling of signed zeros for complex-related classes.

* Add Misc/NEWS entry.

(cherry picked from commit 112ec38c15)
2017-02-20 21:50:49 +00:00
INADA Naoki
66fa9d4205 bpo-24274: fix comment in dictobject.c (GH-194) 2017-02-20 20:29:30 +09:00
Xiang Zhang
7c95a94c3a bpo-29347: Fix possibly dereferencing undefined pointers when creating weakref objects (#128) (#188) 2017-02-20 14:33:06 +08:00
INADA Naoki
06a4fcb245 bpo-29438: Fixed use-after-free in key sharing dict (#40) 2017-02-13 09:16:20 +09:00
Serhiy Storchaka
b2a5be0763 Issue #27867: Function PySlice_GetIndicesEx() is replaced with a macro if
Py_LIMITED_API is not set or set to the value between 0x03050400
and 0x03060000 (not including) or 0x03060100 or higher.
2017-01-25 13:23:05 +02:00
Serhiy Storchaka
713640c4c9 Issue #29337: Fixed possible BytesWarning when compare the code objects.
Warnings could be emitted at compile time.
2017-01-24 20:49:26 +02:00
Martin Panter
536d70ed33 Fix grammar, typos and markup in documentation and code comments
* Indent versionchanged at method level, not class level
* Mark up ``--help`` to avoid generating an en dash
* Use forward slash in Unix command line with a dollar sign ($) prompt
2017-01-14 08:23:08 +00:00
Serhiy Storchaka
67796521dd Issue #28969: Fixed race condition in C implementation of functools.lru_cache.
KeyError could be raised when cached function with full cache was
simultaneously called from differen threads with the same uncached arguments.
2017-01-12 18:34:33 +02:00
Xiang Zhang
b0541f4cdf Issue #29145: Fix overflow checks in str.replace() and str.join().
Based on patch by Martin Panter.
2017-01-10 10:52:00 +08:00
Stefan Krah
195319e6bb Issue #29111: Fix memoryview signature. 2016-12-30 12:23:35 +01:00
Serhiy Storchaka
c9ad8b7a23 Issue #29073: bytearray formatting no longer truncates on first null byte. 2016-12-28 09:54:22 +02:00
Antoine Pitrou
e10ca3a0fe Issue #28427: old keys should not remove new values from
WeakValueDictionary when collecting from another thread.
2016-12-27 14:19:20 +01:00