Commit Graph

80874 Commits

Author SHA1 Message Date
Benjamin Peterson af83770c3a Run autoreconf. 2019-02-25 21:56:27 -08:00
Miss Islington (bot) a0f656d310
closes bpo-13497: Fix `broken nice` configure test. (GH-12041)
Per POSIX, `nice(3)` requires `unistd.h` and `exit(3)` requires `stdlib.h`.

Fixing the test will prevent false positives with pedantic compilers like clang.
(cherry picked from commit 90c6facebd)

Co-authored-by: ngie-eign <1574099+ngie-eign@users.noreply.github.com>
2019-02-25 21:54:33 -08:00
Ned Deily b5213f4def
[2.7] bpo-27313: Avoid test_ttk_guionly ComboboxTest fail with macOS Cocoa Tk (GH-12015) 2019-02-24 03:33:19 -05:00
Ned Deily 72ff2f7554
bpo-26386: Re-enable missing widget testcases in test_ttk_guionly. (GH-12014) 2019-02-24 03:04:19 -05:00
Alan Grgic c7be55208b bpo-36089: Fix formatting/spelling on SimpleHTTPServer docs. (GH-11995) 2019-02-23 07:16:09 +02:00
Miss Islington (bot) 6ee41793d2 bpo-35584: Clarify role of caret in a class class (GH-11946) (GH-11948)
https://bugs.python.org/issue35584
(cherry picked from commit 3bacf61265)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-02-19 12:26:11 -08:00
Stéphane Wirtel c611db4942 [2.7] bpo-35126: Fix a mistake in FAQ about converting number to string (GH-11911)
https://bugs.python.org/issue35126
2019-02-19 01:26:02 -08:00
Tzu-ping Chung d5409eb6c2 [2.7] bpo-1104: msilib.SummaryInfo.GetProperty() truncates the string by one character (GH-4517) (GH-11749)
Add one char to MsiSummaryInfoGetProperty() output
Based on the patch in [bpo-1104](https://bugs.python.org/issue1104) by Anthony Tuininga (atuining) and Mark McMahon (markm)
(cherry picked from commit 2de576e16d)

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>





https://bugs.python.org/issue1104
2019-02-18 19:06:10 -08:00
Benjamin Peterson 49778ada0e Set version to 2.7.16rc1+. 2019-02-17 12:08:34 -08:00
Steve Dower bd6c39608b Add product codes until the end of time. (GH-11901) 2019-02-16 16:42:48 -08:00
Benjamin Peterson baacaac06f Set version to 2.7.16rc1. 2019-02-16 11:02:20 -08:00
Benjamin Peterson 44039c2cf1 Collect 2.7.16rc1 release notes. 2019-02-16 11:01:44 -08:00
Ned Deily b27e30553c
Update IDLE.app plist copyright date. (GH-11890) 2019-02-16 02:03:48 -05:00
stratakis c3c49ec568 [2.7] bpo-33570: Enable OpenSSL 1.1.1 testing within the multissltests (GH-11879)
multissltests: fix _build_src(), add 'cwd' variable.
2019-02-15 19:01:27 +01:00
stratakis 2149a9ad7a [2.7] bpo-32947: Fixes for TLS 1.3 and OpenSSL 1.1.1 (GH-8761) (GH-11876)
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 2a4ee8aa01)
2019-02-15 18:27:44 +01:00
stratakis 28eb87f4f5 Fixup from test_ssl test_default_ecdh_curve (GH-11877)
Partial backport from cb5b68abde

Co-authored-by: Christian Heimes <christian@python.org>
2019-02-15 17:18:58 +01:00
stratakis b8eaec697a [2.7] bpo-28043: improved default settings for SSLContext (GH-10608)
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 358cfd426c)
2019-02-15 15:24:11 +01:00
stratakis c49f63c176 [2.7] bpo-33570: TLS 1.3 ciphers for OpenSSL 1.1.1 (GH-6976) (GH-8760) (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 3e630c541b)
Co-authored-by: Christian Heimes <christian@python.org>
2019-02-15 14:17:12 +01:00
Victor Stinner 826a8b7081
bpo-35746: Credit Colin Read and Nicolas Edet (GH-11866)
Add credit for the cert parser vulnerability. Mention also Cisco
TALOS-2018-0758 identifier.
2019-02-15 12:34:17 +01:00
Miss Islington (bot) 2f1a317d5f
Doc sidebar: 3.6 has moved to security-fix mode. (GH-11810)
(cherry picked from commit 9db56fb8fa)

Co-authored-by: Julien Palard <julien@palard.fr>
2019-02-10 13:43:52 -08:00
Mariatta 8fe830d374 [2.7] Fix url to core-mentorship mailing list (GH-11775). (GH-11778)
(cherry picked from commit e9bc4172d1)

Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
2019-02-06 14:02:45 -08:00
Miss Islington (bot) 40a101df8c bpo-25592: Improve documentation of distutils data_files (GH-9767) (GH-11734)
(cherry picked from commit 598e15d4fe)

Co-authored-by: jdemeyer <J.Demeyer@UGent.be>
2019-02-02 11:16:09 +01:00
Miss Islington (bot) 06b15424b0
bpo-35746: Fix segfault in ssl's cert parser (GH-11569)
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 a37f52436f)

Co-authored-by: Christian Heimes <christian@python.org>
2019-01-15 15:11:52 -08:00
Serhiy Storchaka 1462234baf
[2.7] bpo-8765: Deprecate writing unicode to binary streams in Py3k mode. (GH-11127) 2019-01-15 14:34:48 +02:00
Miss Islington (bot) 77b80c956f
bpo-34512: Document platform-specific strftime() behavior for non-ASCII format strings (GH-8948)
(cherry picked from commit 1cffd0eed3)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
2019-01-12 09:28:06 -08:00
Serhiy Storchaka 555755ecff
[2.7] bpo-35552: Fix reading past the end in PyString_FromFormat(). (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 d586ccb04f)
2019-01-12 11:20:50 +02:00
Serhiy Storchaka 08a81df050
bpo-33817: Fix _PyString_Resize() and _PyUnicode_Resize() for empty strings. (GH-11515) 2019-01-12 09:22:52 +02:00
Senthil Kumaran 0167c08163
bpo-24746: Fix doctest failures when running the testsuite with -R (#11501) (#11512) 2019-01-10 12:55:08 -08:00
Miss Islington (bot) c0a1d73c64 Update bugs.rst (GH-11487)
(cherry picked from commit 91c6158dbc)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2019-01-09 16:00:48 -07:00
Sanyam Khurana 02e33d9567 [2.7] bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (#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 cbb1645993)

Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
2019-01-09 11:03:03 -08:00
Benjamin Peterson 112e4afd58
Remove README.rst inadvertandly "backported" from 3.x in 5a89c71580. (GH-11409) 2019-01-02 09:14:30 -08:00
Benjamin Peterson 5a89c71580
[2.7] Bump copyright years to 2019. (GH-11408)
(cherry picked from commit 9a69ae8a78)
2019-01-02 08:43:32 -08:00
Ned Deily befe3f7afd macOS installer build: mitigate hdiutil resource busy bug 2018-12-27 15:21:35 -05:00
Ned Deily c540c4ec61 Revert "bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)"
This reverts commit aa58050843.

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.
2018-12-27 15:18:51 -05:00
Matt McCormick 000b8093a1 bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283)
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/
2018-12-22 10:41:36 +09:00
Myles Borins d9a2aca839 [2.7] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10978)
(cherry picked from 0854b92cd2)
2018-12-20 15:29:34 -05:00
Zackery Spytz f347c6eb75 bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175) (GH-11249)
(cherry picked from commit 842acaab13)
2018-12-20 19:38:52 +02:00
Miss Islington (bot) 3752bc96c0
bpo-35529: Fix a reference counting bug in PyCFuncPtr_FromDll(). (GH-11229)
"dll" would leak if an error occurred in _validate_paramflags() or
GenericPyCData_new().
(cherry picked from commit d77d97c9a1)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-12-20 00:51:52 -08:00
Serhiy Storchaka 89b5ea297d
[2.7] bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (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 99d56b5356)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-12-19 17:11:02 +02:00
Zackery Spytz 838645dc41 bpo-10320: Use PY_FORMAT_LONG_LONG in ctypes' PyCArg_repr(). (GH-11230) 2018-12-19 08:01:38 +02:00
Miss Islington (bot) 53e2248a94
bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853)
Use "ll" instead of the nonstandard "q".
(cherry picked from commit 062cbb6772)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-12-18 15:51:04 -08:00
Victor Stinner ea6b322829
bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931) (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 17d0c0595e)
2018-12-18 17:34:51 +01:00
Victor Stinner 34b7c438b8
bpo-34279: regrtest consider that skipped tests are ran (GH-11132) (GH-11158)
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 3a8f4fef4a)
2018-12-14 13:44:08 +01:00
Victor Stinner 16d63202af
bpo-16039: CVE-2013-1752: Limit imaplib.IMAP4_SSL.readline() (GH-11120)
* 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.
2018-12-12 12:05:59 +01:00
Victor Stinner d336b1c8a4
bpo-11617: Try to strengthen test_httpservers (GH-11121)
(cherry picked from commit cb342182ee)
2018-12-11 17:08:02 +01:00
Ned Deily d0d09b511d
[2.7] bpo-15663: the 10.6+ macOS installers for 3.6/2.7 now provide a private Tcl/Tk 8.6 (GH-11110) 2018-12-11 04:33:56 -05:00
Miss Islington (bot) aa58050843
bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)
(cherry picked from commit 7cf3d8e251)

Co-authored-by: Ned Deily <nad@python.org>
2018-12-10 22:39:34 -08:00
Miss Islington (bot) 55076cc0ff
[3.6] bpo-35401: Update macOS installer to OpenSSL 1.0.2q (GH-11095)
https://bugs.python.org/issue35401
(cherry picked from commit 419b5ffc2c)

Co-authored-by: Ned Deily <nad@python.org>
2018-12-10 21:54:04 -08:00
Steve Dower 3c8bd22b8f
bpo-35401: Updates Windows build to OpenSSL 1.0.2q (GH-11089) 2018-12-10 20:26:33 -08:00
Victor Stinner 2632df4c3f
[2.7] bpo-31374: Include pyconfig.h earlier in expat (GH-11078)
Include <pyconfig.h> ealier in Modules/expat/xmlparse.c to define
properly _POSIX_C_SOURCE and _XOPEN_SOURCE.
2018-12-10 16:01:03 +01:00