summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Set version to 2.7.16rc1.v2.7.16rc1Benjamin Peterson2019-02-162-5/+5
|
* Collect 2.7.16rc1 release notes.Benjamin Peterson2019-02-16112-216/+1104
|
* Update IDLE.app plist copyright date. (GH-11890)Ned Deily2019-02-161-1/+1
|
* [2.7] bpo-33570: Enable OpenSSL 1.1.1 testing within the multissltests ↵stratakis2019-02-151-1/+2
| | | | | | (GH-11879) multissltests: fix _build_src(), add 'cwd' variable.
* [2.7] bpo-32947: Fixes for TLS 1.3 and OpenSSL 1.1.1 (GH-8761) (GH-11876)stratakis2019-02-154-19/+58
| | | | | | | | | | | | | | | Backport of TLS 1.3 related fixes from 3.7. Misc fixes and workarounds for compatibility with OpenSSL 1.1.1 from git master and TLS 1.3 support. With OpenSSL 1.1.1, Python negotiates TLS 1.3 by default. Some test cases only apply to TLS 1.2. OpenSSL 1.1.1 has added a new option OP_ENABLE_MIDDLEBOX_COMPAT for TLS 1.3. The feature is enabled by default for maximum compatibility with broken middle boxes. Users should be able to disable the hack and CPython's test suite needs it to verify default options Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 2a4ee8aa01d61b6a9c8e9c65c211e61bdb471826)
* Fixup from test_ssl test_default_ecdh_curve (GH-11877)stratakis2019-02-151-0/+3
| | | | | Partial backport from cb5b68abdeb1b1d56c581d5b4d647018703d61e3 Co-authored-by: Christian Heimes <christian@python.org>
* [2.7] bpo-28043: improved default settings for SSLContext (GH-10608)stratakis2019-02-155-54/+86
| | | | | | | | | The options OP_NO_COMPRESSION, OP_CIPHER_SERVER_PREFERENCE, OP_SINGLE_DH_USE, OP_SINGLE_ECDH_USE, OP_NO_SSLv2 (except for PROTOCOL_SSLv2), and OP_NO_SSLv3 (except for PROTOCOL_SSLv3) are set by default. The initial cipher suite list contains only HIGH ciphers, no NULL ciphers and MD5 ciphers (except for PROTOCOL_SSLv2). (cherry picked from commit 358cfd426ccc0fcd6a7940d306602138e76420ae)
* [2.7] bpo-33570: TLS 1.3 ciphers for OpenSSL 1.1.1 (GH-6976) (GH-8760) ↵stratakis2019-02-154-80/+121
| | | | | | | | | | | | | (GH-10607) Change TLS 1.3 cipher suite settings for compatibility with OpenSSL 1.1.1-pre6 and newer. OpenSSL 1.1.1 will have TLS 1.3 cipers enabled by default. Also update multissltests to test with latest OpenSSL. Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit 3e630c541b35c96bfe5619165255e559f577ee71) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-35746: Credit Colin Read and Nicolas Edet (GH-11866)Victor Stinner2019-02-151-1/+2
| | | | Add credit for the cert parser vulnerability. Mention also Cisco TALOS-2018-0758 identifier.
* Doc sidebar: 3.6 has moved to security-fix mode. (GH-11810)Miss Islington (bot)2019-02-101-1/+1
| | | | | (cherry picked from commit 9db56fb8faaa3cd66e7fe82740a4ae4d786bb27f) Co-authored-by: Julien Palard <julien@palard.fr>
* [2.7] Fix url to core-mentorship mailing list (GH-11775). (GH-11778)Mariatta2019-02-061-2/+2
| | | | | (cherry picked from commit e9bc4172d18db9c182d8e04dd7b033097a994c06) Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
* bpo-25592: Improve documentation of distutils data_files (GH-9767) (GH-11734)Miss Islington (bot)2019-02-021-11/+14
| | | | | (cherry picked from commit 598e15d4feaee3849a91d92c9ca51f17baafe19c) Co-authored-by: jdemeyer <J.Demeyer@UGent.be>
* bpo-35746: Fix segfault in ssl's cert parser (GH-11569)Miss Islington (bot)2019-01-154-0/+51
| | | | | | | | | | | | Fix a NULL pointer deref in ssl module. The cert parser did not handle CRL distribution points with empty DP or URI correctly. A malicious or buggy certificate can result into segfault. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue35746 (cherry picked from commit a37f52436f9aa4b9292878b72f3ff1480e2606c3) Co-authored-by: Christian Heimes <christian@python.org>
* [2.7] bpo-8765: Deprecate writing unicode to binary streams in Py3k mode. ↵Serhiy Storchaka2019-01-154-3/+24
| | | | (GH-11127)
* bpo-34512: Document platform-specific strftime() behavior for non-ASCII ↵Miss Islington (bot)2019-01-121-0/+6
| | | | | | | format strings (GH-8948) (cherry picked from commit 1cffd0eed313011c0c2bb071c8affeb4a7ed05c7) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* [2.7] bpo-35552: Fix reading past the end in PyString_FromFormat(). ↵Serhiy Storchaka2019-01-122-3/+11
| | | | | | | | (GH-11276) (GH-11534) Format character "%s" in PyString_FromFormat() no longer read memory past the limit if precision is specified. (cherry picked from commit d586ccb04f79863c819b212ec5b9d873964078e4)
* bpo-33817: Fix _PyString_Resize() and _PyUnicode_Resize() for empty strings. ↵Serhiy Storchaka2019-01-125-4/+147
| | | | (GH-11515)
* bpo-24746: Fix doctest failures when running the testsuite with -R (#11501) ↵Senthil Kumaran2019-01-101-2/+1
| | | | (#11512)
* Update bugs.rst (GH-11487)Miss Islington (bot)2019-01-091-1/+1
| | | | | (cherry picked from commit 91c6158dbc5d70fcd91993b4e62c7bae926c2ea2) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* [2.7] bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff ↵Sanyam Khurana2019-01-093-4/+50
| | | | | | | | | | | (#11482) * bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff * [2.7] bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (GH-10639). (cherry picked from commit cbb16459934eaf29c7c7d362939cd05550b2f21f) Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
* Remove README.rst inadvertandly "backported" from 3.x in ↵Benjamin Peterson2019-01-021-268/+0
| | | | 5a89c71580529549e71567abf557c812eb470b2b. (GH-11409)
* [2.7] Bump copyright years to 2019. (GH-11408)Benjamin Peterson2019-01-029-11/+279
| | | (cherry picked from commit 9a69ae8a78785105ded02b083b2e5cd2dd939307)
* macOS installer build: mitigate hdiutil resource busy bugNed Deily2018-12-271-6/+17
|
* Revert "bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 ↵Ned Deily2018-12-273-10/+27
| | | | | | | | | (GH-11101)" This reverts commit aa580508431d231677cfaa13ac9b6aa37538b9ef. Due to regressions found with using Tk 8.6.9.1, build the python.org macOS installers with Tcl/Tk 8.6.8 as used in previous releases.
* bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283)Matt McCormick2018-12-221-6/+0
| | | | | | | | | | This addresses C extension build errors related to an undefined _hypot symbol when building with the Microsoft Visual C++ Compiler for Python 2.7 [1] or MinGWPy [2]. It also addresses errors when building a C++ extension with MinGWPy and C++11 from cmath, 'error "::hypot' has not been declared' [1] https://www.microsoft.com/en-us/download/details.aspx?id=44266 [2] https://mingwpy.github.io/
* [2.7] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10978)Myles Borins2018-12-202-0/+2
| | | (cherry picked from 0854b92cd2)
* bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. ↵Zackery Spytz2018-12-209-0/+38
| | | | | (GH-11175) (GH-11249) (cherry picked from commit 842acaab1376c5c84fd5966bb6070e289880e1ca)
* bpo-35529: Fix a reference counting bug in PyCFuncPtr_FromDll(). (GH-11229)Miss Islington (bot)2018-12-201-5/+8
| | | | | | | "dll" would leak if an error occurred in _validate_paramflags() or GenericPyCData_new(). (cherry picked from commit d77d97c9a1f593fe161afab97e2a3e2292ab88b9) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [2.7] bpo-35441: Remove dead and buggy code related to PyList_SetItem(). ↵Serhiy Storchaka2018-12-196-22/+24
| | | | | | | | | | | | | | (GH-11033) (GH-11234) In _localemodule.c and selectmodule.c, remove dead code that would cause double decrefs if run. In addition, replace PyList_SetItem() with PyList_SET_ITEM() in cases where a new list is populated and there is no possibility of an error. In addition, check if the list changed size in the loop in array_array_fromlist(). (cherry picked from commit 99d56b53560b3867844472ae381fb3f858760621) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-10320: Use PY_FORMAT_LONG_LONG in ctypes' PyCArg_repr(). (GH-11230)Zackery Spytz2018-12-191-5/+1
|
* bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' ↵Miss Islington (bot)2018-12-181-1/+1
| | | | | | | | PyCArg_repr(). (GH-10853) Use "ll" instead of the nonstandard "q". (cherry picked from commit 062cbb67726f26794b1b461853e40696b4a0b220) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931) ↵Victor Stinner2018-12-183-4/+50
| | | | | | | | | (GH-11213) check_environ() of distutils.utils now catchs KeyError on calling pwd.getpwuid(): don't create the HOME environment variable in this case. (cherry picked from commit 17d0c0595e101c4ce76b58e55de37e6b5083e6cd)
* bpo-34279: regrtest consider that skipped tests are ran (GH-11132) (GH-11158)Victor Stinner2018-12-143-1/+17
| | | | | | | | bpo-34279, bpo-35412: support.run_unittest() no longer raises TestDidNotRun if a test result contains skipped tests. The exception is now only raised if no test have been run and no test have been skipped. (cherry picked from commit 3a8f4fef4a4dd0e4a800545468eef9542e126181)
* bpo-16039: CVE-2013-1752: Limit imaplib.IMAP4_SSL.readline() (GH-11120)Victor Stinner2018-12-123-17/+10
| | | | | | | | * bpo-16039: CVE-2013-1752: Change use of readline() in imaplib.IMAP4_SSL to limit line length. Remove IMAP4_SSL.readline() and IMAP4_SSL.read() to inherit safe IMAP4 implementation. * bpo-20118: reenable test_linetoolong() of test_imaplib on ThreadedNetworkedTests and ThreadedNetworkedTestsSSL. The test now sets the _MAXLINE limit to 10 characters.
* bpo-11617: Try to strengthen test_httpservers (GH-11121)Victor Stinner2018-12-111-4/+4
| | | (cherry picked from commit cb342182ee47c3e2c743de50d81aad60f4eebefd)
* [2.7] bpo-15663: the 10.6+ macOS installers for 3.6/2.7 now provide a ↵Ned Deily2018-12-114-99/+107
| | | | private Tcl/Tk 8.6 (GH-11110)
* bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)Miss Islington (bot)2018-12-113-27/+10
| | | | | (cherry picked from commit 7cf3d8e25174c8871883e42f3240fd7f01efd3a8) Co-authored-by: Ned Deily <nad@python.org>
* [3.6] bpo-35401: Update macOS installer to OpenSSL 1.0.2q (GH-11095)Miss Islington (bot)2018-12-112-3/+4
| | | | | | https://bugs.python.org/issue35401 (cherry picked from commit 419b5ffc2ca46d7adf0be6216ca3a6e40028e50f) Co-authored-by: Ned Deily <nad@python.org>
* bpo-35401: Updates Windows build to OpenSSL 1.0.2q (GH-11089)Steve Dower2018-12-114-4/+4
|
* [2.7] bpo-31374: Include pyconfig.h earlier in expat (GH-11078)Victor Stinner2018-12-102-1/+6
| | | | Include <pyconfig.h> ealier in Modules/expat/xmlparse.c to define properly _POSIX_C_SOURCE and _XOPEN_SOURCE.
* ceval.c: mark debug 'filename' variable as unused (GH-11074)Victor Stinner2018-12-101-3/+7
| | | | Use GCC __attribute__((unused)) to mark the debug variable 'filename' as unused in Python/ceval.c.
* bpo-31374: Include pyconfig.h earlier in expat (GH-11064)Miss Islington (bot)2018-12-101-0/+1
| | | | | | | | | Include <pyconfig.h> ealier in Modules/expat/xmltok.c to define properly _POSIX_C_SOURCE. Python defines _POSIX_C_SOURCE as 200809L, whereas <features.h> (included indirectly by <string.h>) defines _POSIX_C_SOURCE as 199506L. (cherry picked from commit cf247359d5b7082044eea1fa94b5211a172b1ff6) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061) (GH-11068)Victor Stinner2018-12-103-5/+58
| | | | | | | | | | | | Fix xml.dom.minidom cloneNode() on a document with an entity: pass the correct arguments to the user data handler of an entity (fix an old copy/paste mistake). Bug spotted and fix proposed by Charalampos Stratakis, initial reproducer written by Petr Viktorin. Co-Authored-By: Charalampos Stratakis <cstratak@redhat.com> Co-Authored-By: Petr Viktorin <encukou@gmail.com> (cherry picked from commit 8e0418688906206fe59bd26344320c0fc026849e)
* [2.7] bpo-33023: Fix NotImplemented to NotImplementedError. (GH-10934). ↵Serhiy Storchaka2018-12-072-2/+4
| | | | | | | (GH-11001) (GH-11008) (cherry picked from commit 42b1d6127bd8595522a78a75166ebb9fba74a6a2) (cherry picked from commit 7a2cf1e7d3bf300e98c702589d405734f4a8fcf8)
* Add missing period in distutils.dep_util.newer_group doc (GH-11003)Miss Islington (bot)2018-12-061-1/+1
| | | | | (cherry picked from commit c9566b8c454120e3d0ddb5ab970f262a6cd80077) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-35359: Add _CRT_SECURE_NO_WARNINGS to pythoncore project (GH-10819)Victor Stinner2018-12-061-1/+1
| | | | | Define _CRT_SECURE_NO_WARNINGS in the Visual Studio pythoncore project to make quiet security warnings when building zlib C files (Modules\zlib\ subdirectory).
* [2.7] bpo-33709: test_ntpath and test_posixpath fail in Windows with ↵native-api2018-12-062-6/+8
| | | | ACP!=1252. (GH-7278) (GH-7279)
* [2.7] Correct a couple of unbalanced parenthesis. (GH-10779). (GH-10963)Andre Delfino2018-12-063-3/+3
| | | | (cherry picked from commit 55f41e45b4318cbe19209f5144641344d0049fb8)
* Revert "[2.7] bpo-34172: multiprocessing.Pool leaks resources after being ↵Victor Stinner2018-12-063-45/+19
| | | | | deleted (GH-9686)" (GH-10970) This reverts commit 4a7dd30f5810e8861a3834159a222ab32d5c97d0.
* Fix typo in xml.dom.minidom documentation (GH-10956)Miss Islington (bot)2018-12-051-1/+1
| | | | | | | Escape the \t and \n. Follow up from https://github.com/python/cpython/pull/10814. (cherry picked from commit 2d8f976cde4794d174b44ff7d5fd970aa89c65e8) Co-authored-by: E Kawashima <e-kwsm@users.noreply.github.com>