summaryrefslogtreecommitdiff
path: root/Objects
AgeCommit message (Collapse)AuthorLines
2017-07-25[3.3] [3.5] bpo-27945: Fixed various segfaults with dict. (GH-1657) ↵Serhiy Storchaka-29/+52
(GH-1678) (#2396) Based on patches by Duane Griffin and Tim Mitchell. (cherry picked from commit 753bca3934a7618a4fa96e107ad1c5c18633a683). (cherry picked from commit 2f7f533cf6fb57fcedcbc7bd454ac59fbaf2c655)
2017-07-18[security][3.3] bpo-30730: Prevent environment variables injection in ↵Serhiy Storchaka-2/+2
subprocess on Windows. (GH-2325) (#2363)
2016-11-12Issue #28648: Fixed crash in Py_DecodeLocale() in debug build on Mac OS XSerhiy Storchaka-1/+1
when decode astral characters.
2015-12-03Issue #25709: Fixed problem with in-place string concatenation and utf-8 cache.Serhiy Storchaka-0/+5
2016-01-01remove some copyright notices supserseded by the toplevel onesBenjamin Peterson-3/+0
2015-07-04protect against mutation of the dict during insertion (closes #24407)Benjamin Peterson-7/+19
2015-04-23merge 3.2 (#24044)Benjamin Peterson-2/+4
2015-04-23properly handle malloc failure (closes #24044)Benjamin Peterson-2/+4
Patch by Christian Heimes.
2015-03-02use PyMem_NEW to detect overflow (closes #23362)Benjamin Peterson-1/+1
2015-01-31Issue #23055: Fixed read-past-the-end error in PyUnicode_FromFormatV.Serhiy Storchaka-0/+2
2015-01-27Issue #23055: Fixed a buffer overflow in PyUnicode_FromFormatV. AnalysisSerhiy Storchaka-0/+2
and fix by Guido Vranken.
2015-01-27Issue #23055: Fixed a buffer overflow in PyUnicode_FromFormatV. AnalysisSerhiy Storchaka-17/+20
and fix by Guido Vranken.
2014-10-15Fixed signed/unsigned comparison warningAntoine Pitrou-1/+1
2014-10-15it suffices to check for PY_SSIZE_T_MAX overflow (#22643)Benjamin Peterson-3/+2
2014-10-15make sure length is unsignedBenjamin Peterson-1/+1
2014-10-15fix integer overflow in unicode case operations (closes #22643)Benjamin Peterson-0/+5
2014-10-01Fix unicode_aswidechar() for 4b unicode and 2b wchar_t (AIX).Georg Brandl-1/+1
2014-09-29prevent overflow in unicode_repr (closes #22520)Benjamin Peterson-11/+17
2014-09-29these variables ought to be Py_ssize_tBenjamin Peterson-1/+1
2014-09-29fix overflow checking in PyBytes_Repr (closes #22519)Benjamin Peterson-12/+16
2014-09-29cleanup overflowing handling in unicode_decode_call_errorhandler and ↵Benjamin Peterson-18/+56
unicode_encode_ucs1 (closes #22518)
2014-03-30merge 3.2Benjamin Peterson-19/+19
2014-03-30fix expandtabs overflow detection to be consistent and not rely on signed ↵Benjamin Peterson-19/+19
overflow
2014-03-15avoid referencing past the bounds of an arrayBenjamin Peterson-1/+1
2014-03-14avoid referencing out-of-bounds memoryBenjamin Peterson-1/+1
2014-03-14fix c89 declaration orderBenjamin Peterson-1/+2
2014-03-14don't do pointer arithmetic with signed numbersBenjamin Peterson-1/+2
2014-03-05Make the various iterators' "setstate" sliently and consistently clip theKristján Valur Jónsson-15/+52
index. This avoids the possibility of setting an iterator to an invalid state.
2014-03-04Fix pickling of rangeiter. rangeiter_setstate would not allow setting itKristján Valur Jónsson-1/+1
to the exhausted state.
2014-02-24Issue #19619: Blacklist non-text codecs in method APISerhiy Storchaka-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.
2014-02-15give non-iterable TypeError a message (closes #20507)Benjamin Peterson-1/+1
2014-02-12Issue #19255: Clear error after failed PyDict_SetItem() on shutdown.Serhiy Storchaka-2/+4
This silences a Coverity complain.
2014-02-09Issue #20437: Fixed 21 potential bugs when deleting objects references.Serhiy Storchaka-14/+7
2014-02-08Issue #20538: UTF-7 incremental decoder produced inconsistant string whenSerhiy Storchaka-1/+9
input was truncated in BASE64 section.
2014-01-16Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka-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.
2013-12-14Issue #17576: Removed deprecation warnings added in changeset 618cca51a27e.Serhiy Storchaka-18/+0
2013-12-13Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if "%c"Victor Stinner-3/+16
argument is not in range [0; 255].
2013-12-13Issue #14432: Generator now clears the borrowed reference to the thread stateVictor Stinner-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.
2013-12-11Issue #17576: Deprecation warning emitted now when __int__() or __index__()Serhiy Storchaka-160/+147
return not int instance. Introduced _PyLong_FromNbInt() and refactored PyLong_As*() functions.
2013-11-30Issue #6477: Keep PyNotImplemented_Type and PyNone_Type private.Alexandre Vassalotti-6/+6
2013-11-30Issue #6477: Added support for pickling the types of built-in singletons.Alexandre Vassalotti-2/+2
2013-11-30Issue #19088: Fix incorrect caching of the copyreg module.Alexandre Vassalotti-17/+20
This fix does not cause any degradation in performance.
2013-11-26fix format spec recursive expansion (closes #19729)Benjamin Peterson-2/+4
2013-11-25Remove an errant extra \ within a docstring.Gregory P. Smith-1/+1
2013-11-24Document that @property can incorporate a docstring from the getter method. ↵Raymond Hettinger-5/+9
Improve readabilty with additional whitespace.
2013-10-19Issue #19279: UTF-7 decoder no more produces illegal strings.Serhiy Storchaka-0/+2
2013-10-05Issue #19171: speed some cases of 3-argument long pow().Tim Peters-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.
2013-10-06#19069: use imperative mood in float object docstrings. Patch by Marco Buttu.Ezio Melotti-11/+11
2013-10-06#19068: use imperative mood in complex object docstrings. Patch by Marco Buttu.Ezio Melotti-2/+2
2013-10-06#19067: use imperative mood in range object docstrings. Patch by Marco Buttu.Ezio Melotti-3/+3