Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | merge 3.2 (#24044) | Benjamin Peterson | 2015-04-23 | 1 | -2/+4 |
|\ | |||||
| * | properly handle malloc failure (closes #24044) | Benjamin Peterson | 2015-04-23 | 1 | -2/+4 |
| | | | | | | | | Patch by Christian Heimes. | ||||
| * | Issue #23055: Fixed read-past-the-end error in PyUnicode_FromFormatV. | Serhiy Storchaka | 2015-01-30 | 1 | -0/+2 |
| | | |||||
| * | Issue #23055: Fixed a buffer overflow in PyUnicode_FromFormatV. Analysis | Serhiy Storchaka | 2015-01-27 | 1 | -17/+20 |
| | | | | | | | | and fix by Guido Vranken. | ||||
| * | Fix unicode_aswidechar() for 4b unicode and 2b wchar_t (AIX). | Georg Brandl | 2014-10-01 | 1 | -1/+1 |
| | | |||||
* | | use PyMem_NEW to detect overflow (closes #23362) | Benjamin Peterson | 2015-03-02 | 1 | -1/+1 |
| | | |||||
* | | Issue #23055: Fixed a buffer overflow in PyUnicode_FromFormatV. Analysis | Serhiy Storchaka | 2015-01-27 | 1 | -0/+2 |
| | | | | | | | | and fix by Guido Vranken. | ||||
* | | Fixed signed/unsigned comparison warning | Antoine Pitrou | 2014-10-15 | 1 | -1/+1 |
| | | |||||
* | | it suffices to check for PY_SSIZE_T_MAX overflow (#22643) | Benjamin Peterson | 2014-10-15 | 1 | -3/+2 |
| | | |||||
* | | make sure length is unsigned | Benjamin Peterson | 2014-10-15 | 1 | -1/+1 |
| | | |||||
* | | fix integer overflow in unicode case operations (closes #22643) | Benjamin Peterson | 2014-10-15 | 1 | -0/+5 |
| | | |||||
* | | prevent overflow in unicode_repr (closes #22520) | Benjamin Peterson | 2014-09-30 | 1 | -11/+17 |
| | | |||||
* | | these variables ought to be Py_ssize_t | Benjamin Peterson | 2014-09-29 | 1 | -1/+1 |
| | | |||||
* | | fix overflow checking in PyBytes_Repr (closes #22519) | Benjamin Peterson | 2014-09-29 | 1 | -12/+16 |
| | | |||||
* | | cleanup overflowing handling in unicode_decode_call_errorhandler and ↵ | Benjamin Peterson | 2014-09-29 | 1 | -18/+56 |
| | | | | | | | | unicode_encode_ucs1 (closes #22518) | ||||
* | | merge 3.2 | Benjamin Peterson | 2014-03-30 | 1 | -19/+19 |
|\ \ | |/ | |||||
| * | fix expandtabs overflow detection to be consistent and not rely on signed ↵ | Benjamin Peterson | 2014-03-30 | 1 | -19/+19 |
| | | | | | | | | overflow | ||||
| * | #17296: backport fix for issue 1692335, naive exception pickling. | R David Murray | 2013-02-27 | 1 | -1/+10 |
| | | |||||
* | | avoid referencing past the bounds of an array | Benjamin Peterson | 2014-03-15 | 1 | -1/+1 |
| | | |||||
* | | avoid referencing out-of-bounds memory | Benjamin Peterson | 2014-03-15 | 1 | -1/+1 |
| | | |||||
* | | fix c89 declaration order | Benjamin Peterson | 2014-03-15 | 1 | -1/+2 |
| | | |||||
* | | don't do pointer arithmetic with signed numbers | Benjamin Peterson | 2014-03-15 | 1 | -1/+2 |
| | | |||||
* | | Make the various iterators' "setstate" sliently and consistently clip the | Kristján Valur Jónsson | 2014-03-05 | 6 | -15/+52 |
| | | | | | | | | | | index. This avoids the possibility of setting an iterator to an invalid state. | ||||
* | | Fix pickling of rangeiter. rangeiter_setstate would not allow setting it | Kristján Valur Jónsson | 2014-03-04 | 1 | -1/+1 |
| | | | | | | | | to the exhausted state. | ||||
* | | Issue #19619: Blacklist non-text codecs in method API | Serhiy Storchaka | 2014-02-24 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | str.encode, bytes.decode and bytearray.decode now use an internal API to throw LookupError for known non-text encodings, rather than attempting the encoding or decoding operation and then throwing a TypeError for an unexpected output type. The latter mechanism remains in place for third party non-text encodings. Backported changeset d68df99d7a57. | ||||
* | | give non-iterable TypeError a message (closes #20507) | Benjamin Peterson | 2014-02-15 | 1 | -1/+1 |
| | | |||||
* | | Issue #19255: Clear error after failed PyDict_SetItem() on shutdown. | Serhiy Storchaka | 2014-02-12 | 1 | -2/+4 |
| | | | | | | | | This silences a Coverity complain. | ||||
* | | Issue #20437: Fixed 21 potential bugs when deleting objects references. | Serhiy Storchaka | 2014-02-09 | 3 | -14/+7 |
| | | |||||
* | | Issue #20538: UTF-7 incremental decoder produced inconsistant string when | Serhiy Storchaka | 2014-02-08 | 1 | -1/+9 |
| | | | | | | | | input was truncated in BASE64 section. | ||||
* | | Issue #19936: Added executable bits or shebang lines to Python scripts which | Serhiy Storchaka | 2014-01-16 | 1 | -0/+0 |
| | | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script. | ||||
* | | Issue #17576: Removed deprecation warnings added in changeset 618cca51a27e. | Serhiy Storchaka | 2013-12-14 | 2 | -18/+0 |
| | | |||||
* | | Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if "%c" | Victor Stinner | 2013-12-13 | 1 | -3/+16 |
| | | | | | | | | argument is not in range [0; 255]. | ||||
* | | Issue #14432: Generator now clears the borrowed reference to the thread state | Victor Stinner | 2013-12-13 | 1 | -0/+3 |
| | | | | | | | | | | | | | | Fix a crash when a generator is created in a C thread that is destroyed while the generator is still used. The issue was that a generator contains a frame, and the frame kept a reference to the Python state of the destroyed C thread. The crash occurs when a trace function is setup. | ||||
* | | Issue #17576: Deprecation warning emitted now when __int__() or __index__() | Serhiy Storchaka | 2013-12-11 | 2 | -160/+147 |
| | | | | | | | | | | return not int instance. Introduced _PyLong_FromNbInt() and refactored PyLong_As*() functions. | ||||
* | | Issue #6477: Keep PyNotImplemented_Type and PyNone_Type private. | Alexandre Vassalotti | 2013-12-01 | 1 | -6/+6 |
| | | |||||
* | | Issue #6477: Added support for pickling the types of built-in singletons. | Alexandre Vassalotti | 2013-12-01 | 1 | -2/+2 |
| | | |||||
* | | Issue #19088: Fix incorrect caching of the copyreg module. | Alexandre Vassalotti | 2013-11-30 | 1 | -17/+20 |
| | | | | | | | | This fix does not cause any degradation in performance. | ||||
* | | fix format spec recursive expansion (closes #19729) | Benjamin Peterson | 2013-11-27 | 1 | -2/+4 |
| | | |||||
* | | Remove an errant extra \ within a docstring. | Gregory P. Smith | 2013-11-25 | 1 | -1/+1 |
| | | |||||
* | | Document that @property can incorporate a docstring from the getter method. ↵ | Raymond Hettinger | 2013-11-24 | 1 | -5/+9 |
| | | | | | | | | Improve readabilty with additional whitespace. | ||||
* | | Issue #19279: UTF-7 decoder no more produces illegal strings. | Serhiy Storchaka | 2013-10-19 | 1 | -0/+2 |
| | | |||||
* | | Issue #19171: speed some cases of 3-argument long pow(). | Tim Peters | 2013-10-05 | 1 | -4/+10 |
| | | | | | | | | | | | | | | | | Reduce the base by the modulus when the base is larger than the modulus. This can unboundedly speed the "startup costs" of doing modular exponentiation, particularly in cases where the base is much larger than the modulus. Original patch by Armin Rigo, inspired by https://github.com/pyca/ed25519. | ||||
* | | #19069: use imperative mood in float object docstrings. Patch by Marco Buttu. | Ezio Melotti | 2013-10-05 | 1 | -11/+11 |
| | | |||||
* | | #19068: use imperative mood in complex object docstrings. Patch by Marco Buttu. | Ezio Melotti | 2013-10-05 | 1 | -2/+2 |
| | | |||||
* | | #19067: use imperative mood in range object docstrings. Patch by Marco Buttu. | Ezio Melotti | 2013-10-05 | 1 | -3/+3 |
| | | |||||
* | | Issue #19014: memoryview.cast() is now allowed on zero-length views. | Antoine Pitrou | 2013-10-03 | 1 | -1/+1 |
| | | |||||
* | | Issue #18594: Fix the fast path for collections.Counter(). | Raymond Hettinger | 2013-10-01 | 1 | -4/+1 |
| | | | | | | | | The path wasn't being taken due to an over-restrictive type check. | ||||
* | | Issue #18942: sys._debugmallocstats() output was damaged on Windows. | Tim Peters | 2013-09-06 | 1 | -1/+1 |
| | | | | | | | | | | | | _PyDebugAllocatorStats() called PyOS_snprintf() with a %zd format code, but MS doesn't support that code. Interpolated PY_FORMAT_SIZE_T in place of the "z". | ||||
* | | Issue #18783: Removed existing mentions of Python long type in docstrings, | Serhiy Storchaka | 2013-08-27 | 5 | -61/+60 |
| | | | | | | | | error messages and comments. | ||||
* | | Various clarifications based on feedback & questions over the years. | Tim Peters | 2013-08-24 | 1 | -19/+96 |
| | | | | | | | | (grafted from 23181bf411a16287a0a54e910fc0f9ecd2764bf0) |