Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-31095: fix potential crash during GC (GH-2974) (#3196) | INADA Naoki | 2017-09-26 | 2 | -0/+9 |
| | | | (cherry picked from commit a6296d34a478b4f697ea9db798146195075d496c) | ||||
* | [3.5] bpo-22207: Add checks for possible integer overflows in ↵ | Serhiy Storchaka | 2017-07-11 | 1 | -6/+12 |
| | | | | | | unicodeobject.c. (GH-2623) (#2659) Based on patch by Victor Stinner. (cherry picked from commit 64e461be09e23705ecbab43a8b01722186641f71) | ||||
* | [3.5] bpo-13617: Reject embedded null characters in wchar* strings. ↵ | Serhiy Storchaka | 2017-06-28 | 1 | -0/+14 |
| | | | | | | | | | | (GH-2302) (#2463) Based on patch by Victor Stinner. Add private C API function _PyUnicode_AsUnicode() which is similar to PyUnicode_AsUnicode(), but checks for null characters.. (cherry picked from commit f7eae0adfcd4c50034281b2c69f461b43b68db84) | ||||
* | [3.5] bpo-30708: Add private C API function _PyUnicode_AsWideCharString(). ↵ | Serhiy Storchaka | 2017-06-27 | 1 | -0/+31 |
| | | | | | | | | | | (GH-2285) (GH-2443) (#2448) And use it instead of PyUnicode_AsWideCharString() if appropriate. _PyUnicode_AsWideCharString(unicode) is like PyUnicode_AsWideCharString(unicode, NULL), but raises a ValueError if the wchar_t* string contains null characters. (cherry picked from commit e613e6add5f07ff6aad5802924596b631b707d2a). (cherry picked from commit 0edffa3073b551ffeca34952529e7b292f1bd350) | ||||
* | [3.5] bpo-30730: Prevent environment variables injection in subprocess on ↵ | Serhiy Storchaka | 2017-06-23 | 1 | -2/+2 |
| | | | | | | Windows. (GH-2325) (#2361) Prevent passing other invalid environment variables and command arguments.. (cherry picked from commit d174d24a5d37d1516b885dc7c82f71ecd5930700) | ||||
* | [3.5] bpo-27945: Fixed various segfaults with dict. (GH-1657) (#1678) | Serhiy Storchaka | 2017-05-20 | 1 | -29/+51 |
| | | | | Based on patches by Duane Griffin and Tim Mitchell. (cherry picked from commit 753bca3934a7618a4fa96e107ad1c5c18633a683) | ||||
* | [3.5] bpo-25794: Fix `type.__setattr__()` for non-interned attribute names. ↵ | Serhiy Storchaka | 2017-05-20 | 1 | -5/+34 |
| | | | | | | | (GH-1652) (#1674) Based on patch by Eryk Sun. (cherry picked from commit d896985bb2de49046f9b6879e906d1e4db255e23) | ||||
* | bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1530) (#1480) | Xiang Zhang | 2017-05-10 | 1 | -3/+5 |
| | |||||
* | [3.5] bpo-29802: Fix the cleaning up issue in PyUnicode_FSDecoder(). ↵ | Serhiy Storchaka | 2017-04-21 | 1 | -0/+1 |
| | | | | | (GH-1217) (#1219) (cherry picked from commit 7a113a0) | ||||
* | [3.5] bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() ↵ | Serhiy Storchaka | 2017-04-19 | 1 | -3/+9 |
| | | | | | | | | | (GH-1096) (GH-1180) (#1182) raised an error. (cherry picked from commit bf623ae8843dc30b28c574bec8d29fc14be59d86) (cherry picked from commit 680fea4067537a9b9c79aadd44a3a19e83cd2dbf) | ||||
* | bpo-29998: Pickling and copying ImportError now preserves name and path ↵ | Serhiy Storchaka | 2017-04-08 | 1 | -0/+48 |
| | | | | | | (#1010) (#1043) attributes. (cherry picked from commit b785396ab451b0c9d6ae9ee5a9e56c810209a6cb) | ||||
* | Expand the PySlice_GetIndicesEx macro. (#1023) (#1045) | Serhiy Storchaka | 2017-04-08 | 6 | -20/+23 |
| | | | (cherry picked from commit b879fe82e7e5c3f7673c9a7fa4aad42bd05445d8) | ||||
* | bpo-29941: Assert fixes (#886) (#956) | T. Wouters | 2017-04-02 | 1 | -1/+3 |
| | | | | | | | | | | 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 a00c3fd12d421e41b769debd7df717d17b0deed5 and 06bb4873d6a9ac303701d08a851d6cd9a51e02a3) | ||||
* | bpo-29935: Fixed error messages in the index() method of tuple, list and ↵ | Serhiy Storchaka | 2017-03-30 | 2 | -4/+4 |
| | | | | | | | deque (#887) (#907) (#909) when pass indices of wrong type. (cherry picked from commit d4edfc9abffca965e76ebc5957a92031a4d6c4d4) (cherry picked from commit bf4bb2e43030661e568d5d4b046e8b9351cc164c) | ||||
* | bpo-28876: bool of large range raises OverflowError (#699) (#735) | Serhiy Storchaka | 2017-03-20 | 1 | -1/+20 |
| | | | | (cherry picked from commit e46fb8611867fa3b407a813f53137929b7cb4a10) | ||||
* | bpo-29116: Fix error messages for concatenating bytes and bytearray with ↵ | Serhiy Storchaka | 2017-03-19 | 2 | -2/+2 |
| | | | | | unsupported type. (#709) (#724) (cherry picked from commit 6b5a9ec4788770c652bac3bf5d5a0a3b710b82ae) | ||||
* | Fix wrapping into StopIteration of return values in generators and ↵ | Yury Selivanov | 2017-03-12 | 1 | -2/+1 |
| | | | | coroutines (#644) (#648) | ||||
* | bpo-29602: fix signed zero handling in complex constructor. (#203) (#205) | Mark Dickinson | 2017-02-20 | 1 | -3/+3 |
| | | | | | | | * Fix incorrect handling of signed zeros for complex-related classes. * Add Misc/NEWS entry. (cherry picked from commit 112ec38c15b388fe025ccb85369a584d218b1160) | ||||
* | bpo-24274: fix comment in dictobject.c (GH-194) | INADA Naoki | 2017-02-20 | 1 | -1/+1 |
| | |||||
* | bpo-29347: Fix possibly dereferencing undefined pointers when creating ↵ | Xiang Zhang | 2017-02-20 | 1 | -0/+2 |
| | | | | weakref objects (#128) (#188) | ||||
* | bpo-29438: Fixed use-after-free in key sharing dict (#40) | INADA Naoki | 2017-02-13 | 1 | -6/+4 |
| | |||||
* | Issue #27867: Function PySlice_GetIndicesEx() is replaced with a macro if | Serhiy Storchaka | 2017-01-25 | 1 | -24/+54 |
| | | | | | Py_LIMITED_API is not set or set to the value between 0x03050400 and 0x03060000 (not including) or 0x03060100 or higher. | ||||
* | Issue #29337: Fixed possible BytesWarning when compare the code objects. | Serhiy Storchaka | 2017-01-24 | 1 | -3/+3 |
| | | | | Warnings could be emitted at compile time. | ||||
* | Fix grammar, typos and markup in documentation and code comments | Martin Panter | 2017-01-14 | 1 | -1/+1 |
| | | | | | | * 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 | ||||
* | Issue #28969: Fixed race condition in C implementation of functools.lru_cache. | Serhiy Storchaka | 2017-01-12 | 1 | -8/+23 |
| | | | | | KeyError could be raised when cached function with full cache was simultaneously called from differen threads with the same uncached arguments. | ||||
* | Issue #29145: Fix overflow checks in str.replace() and str.join(). | Xiang Zhang | 2017-01-10 | 1 | -6/+8 |
| | | | | Based on patch by Martin Panter. | ||||
* | Issue #29111: Fix memoryview signature. | Stefan Krah | 2016-12-30 | 1 | -1/+1 |
| | |||||
* | Issue #29073: bytearray formatting no longer truncates on first null byte. | Serhiy Storchaka | 2016-12-28 | 1 | -1/+3 |
| | |||||
* | Issue #28427: old keys should not remove new values from | Antoine Pitrou | 2016-12-27 | 1 | -25/+56 |
| | | | | WeakValueDictionary when collecting from another thread. | ||||
* | Issue #29044: Fix a use-after-free in string '%c' formatter. | Xiang Zhang | 2016-12-22 | 1 | -3/+4 |
| | |||||
* | Issue #28147: Fix a memory leak in split-table dictionaries | INADA Naoki | 2016-12-20 | 1 | -6/+15 |
| | | | | setattr() must not convert combined table into split table. | ||||
* | Issue #29000: Fixed bytes formatting of octals with zero padding in alternate | Serhiy Storchaka | 2016-12-17 | 1 | -3/+2 |
| | | | | form. | ||||
* | Revert changeset 1f31bf3f76f5 (issue5322) except tests. | Serhiy Storchaka | 2016-12-14 | 1 | -28/+1 |
| | |||||
* | Issue #5322: Fixed setting __new__ to a PyCFunction inside Python code. | Serhiy Storchaka | 2016-12-02 | 1 | -1/+28 |
| | | | | Original patch by Andreas Stührk. | ||||
* | Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions. | Serhiy Storchaka | 2016-12-05 | 1 | -2/+16 |
| | |||||
* | Fixed an off-by-one error in _PyUnicode_EqualToASCIIString (issue #28701). | Serhiy Storchaka | 2016-11-16 | 1 | -1/+1 |
| | |||||
* | Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId. | Serhiy Storchaka | 2016-11-16 | 2 | -6/+44 |
| | | | | | | The latter function is more readable, faster and doesn't raise exceptions. Based on patch by Xiang Zhang. | ||||
* | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 4 | -7/+42 |
| | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions. | ||||
* | Issue #28648: Fixed crash in Py_DecodeLocale() in debug build on Mac OS X | Serhiy Storchaka | 2016-11-12 | 1 | -1/+1 |
|\ | | | | | | | when decode astral characters. | ||||
| * | Issue #28648: Fixed crash in Py_DecodeLocale() in debug build on Mac OS X | Serhiy Storchaka | 2016-11-12 | 1 | -1/+1 |
| |\ | | | | | | | | | | when decode astral characters. | ||||
| | * | Issue #28648: Fixed crash in Py_DecodeLocale() in debug build on Mac OS X | Serhiy Storchaka | 2016-11-12 | 1 | -1/+1 |
| | | | | | | | | | | | | when decode astral characters. | ||||
| | * | Issue #25709: Fixed problem with in-place string concatenation and utf-8 cache. | Serhiy Storchaka | 2015-12-02 | 1 | -0/+5 |
| | | | |||||
* | | | ssue #27942: Fix memory leak in codeobject.c | Yury Selivanov | 2016-11-09 | 1 | -0/+2 |
| | | | |||||
* | | | genobject: Remove unnecessary tp_free slots from aiter_wrapper and coro_wrapper | Yury Selivanov | 2016-11-09 | 1 | -2/+2 |
| | | | |||||
* | | | make sure dict view types are initialized | Benjamin Peterson | 2016-11-06 | 1 | -0/+9 |
| | | | |||||
* | | | Issue #23996: Added _PyGen_SetStopIterationValue for safe raising | Serhiy Storchaka | 2016-11-06 | 1 | -10/+50 |
| | | | | | | | | | | | | | | | StopIteration with value. More safely handle non-normalized exceptions in -_PyGen_FetchStopIterationValue. | ||||
* | | | Issue #28385: An error message when non-empty format spec is passed to | Serhiy Storchaka | 2016-10-30 | 1 | -19/+9 |
| | | | | | | | | | | | | object.__format__ now contains the name of actual type. | ||||
* | | | Backed out changeset 9f7505019767 (issue #27275). | Serhiy Storchaka | 2016-10-30 | 1 | -7/+22 |
| | | | |||||
* | | | Issue #27275: Fixed implementation of pop() and popitem() methods in | Serhiy Storchaka | 2016-10-25 | 1 | -22/+7 |
| | | | | | | | | | | | | subclasses of accelerated OrderedDict. | ||||
* | | | Issue #28426: Fixed potential crash in PyUnicode_AsDecodedObject() in debug ↵ | Serhiy Storchaka | 2016-10-25 | 1 | -10/+2 |
|\ \ \ | |/ / | | | | | | | build. |