]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 years ago[3.7] gh-90359: Update documentation to follow PEP 495. (gh-94800). (gh-94833)
Dong-hee Na [Thu, 14 Jul 2022 19:33:14 +0000 (04:33 +0900)] 
[3.7] gh-90359: Update documentation to follow PEP 495. (gh-94800). (gh-94833)

(cherry picked from commit 07374cce52abb7fd39729dc1b646ca3029b64c64)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
3 years ago[3.7] gh-81054: Document that SimpleHTTPRequestHandler follows symbolic links (GH...
Łukasz Langa [Fri, 1 Jul 2022 16:50:36 +0000 (18:50 +0200)] 
[3.7] gh-81054: Document that SimpleHTTPRequestHandler follows symbolic links (GH-94416) (GH-94496)

(cherry picked from commit 80aaeabb8bd1e6b49598a7e23e0f8d99b3fcecaf)

Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
3 years agogh-87389: Fix an open redirection vulnerability in http.server. (GH-93879) (GH-94095)
Miss Islington (bot) [Wed, 22 Jun 2022 22:05:00 +0000 (15:05 -0700)] 
gh-87389: Fix an open redirection vulnerability in http.server. (GH-93879) (GH-94095)

Fix an open redirection vulnerability in the `http.server` module when
an URI path starts with `//` that could produce a 301 Location header
with a misleading target.  Vulnerability discovered, and logic fix
proposed, by Hamza Avvan (@hamzaavvan).

Test and comments authored by Gregory P. Smith [Google].
(cherry picked from commit 4abab6b603dd38bec1168e9a37c40a48ec89508e)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
3 years agogh-91172: Create a workflow for verifying bundled pip and setuptools (GH-31885) ...
Miss Islington (bot) [Wed, 22 Jun 2022 14:26:43 +0000 (07:26 -0700)] 
gh-91172: Create a workflow for verifying bundled pip and setuptools (GH-31885) (GH-94126)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
(cherry picked from commit d36954b7ead06daead3dcf9b0dd9f8002eab508f)

Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
3 years ago[3.7] gh-93065: Fix HAMT to iterate correctly over 7-level deep trees (GH-93149)
Łukasz Langa [Mon, 23 May 2022 21:11:19 +0000 (23:11 +0200)] 
[3.7] gh-93065: Fix HAMT to iterate correctly over 7-level deep trees (GH-93149)

Also while there, clarify a few things about why we reduce the hash to 32 bits.

Co-authored-by: Eli Libman <eli@hyro.ai>
Co-authored-by: Yury Selivanov <yury@edgedb.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit c1f5c903a7e4ed27190488f4e33b00d3c3d952e5)

3 years ago[3.7] gh-80254: Disallow recursive usage of cursors in sqlite3 converters (GH-92334)
Erlend Egeberg Aasland [Mon, 23 May 2022 21:09:12 +0000 (23:09 +0200)] 
[3.7] gh-80254: Disallow recursive usage of cursors in sqlite3 converters (GH-92334)

(cherry picked from commit c908dc5b4798c311981bd7e1f7d92fb623ee448b)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agogh-92448: Update the documentation builder to render the GitHub issue (GH-92600)
Ned Deily [Tue, 10 May 2022 04:37:43 +0000 (23:37 -0500)] 
gh-92448: Update the documentation builder to render the GitHub issue (GH-92600)

3 years ago[3.7] gh-91888: add a `:gh:` role to the documentation (GH-91889) (GH-91937)
Ezio Melotti [Tue, 10 May 2022 04:15:41 +0000 (06:15 +0200)] 
[3.7] gh-91888: add a `:gh:` role to the documentation (GH-91889) (GH-91937)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>.
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit f7641a2ffec243e5f600028a84debe9028a9ee44)

3 years agoAdd redirects to Misc/NEWS bpo links (GH-91454) (GH-91894)
Miss Islington (bot) [Tue, 10 May 2022 04:05:14 +0000 (21:05 -0700)] 
Add redirects to Misc/NEWS bpo links (GH-91454) (GH-91894)

(cherry picked from commit 17dbb6bc10ca8a8b602335414c047294f00afcbe)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
3 years ago[3.7] Update Sphinx bpo role to use redirect URI. (GH-91893)
Ezio Melotti [Tue, 10 May 2022 04:04:07 +0000 (06:04 +0200)] 
[3.7] Update Sphinx bpo role to use redirect URI. (GH-91893)

(cherry picked from commit 08cfe079503ffd19d8b7ab324f0fdb1c6b150ca8)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
3 years agobpo-42773: fix tests not being run on pushes (GH-24004) (GH-92341)
Miss Islington (bot) [Fri, 6 May 2022 17:02:47 +0000 (10:02 -0700)] 
bpo-42773: fix tests not being run on pushes (GH-24004) (GH-92341)

There was a typo, we were checking if the "GITHUB_BASE_REF" string
literal was empty instead of the $GITHUB_BASE_REF value. When
$GITHUB_BASE_REF is empty, the action that triggered the run was not a
pull request, so we always run the full test suite.

Signed-off-by: Filipe Laíns <lains@riseup.net>
(cherry picked from commit 4ac923f2756f835f512339ee181348cc535ab07f)

3 years agobpo-47194: Update zlib to v1.2.12 on Windows to resolve CVE-2018-25032 (GH-32241...
Miss Islington (bot) [Mon, 4 Apr 2022 03:27:22 +0000 (20:27 -0700)] 
bpo-47194: Update zlib to v1.2.12 on Windows to resolve CVE-2018-25032 (GH-32241) (GH-32251)

(cherry picked from commit 6066739ff7794e54c98c08b953a699cbc961cd28)

Co-authored-by: Zachary Ware <zach@python.org>
3 years agobpo-47138: Ensure Windows docs build uses the same pinned version as other platforms...
Steve Dower [Tue, 29 Mar 2022 19:10:57 +0000 (20:10 +0100)] 
bpo-47138: Ensure Windows docs build uses the same pinned version as other platforms (GH-32182)

3 years agobpo-47138: Fix documentation build by pinning Jinja version to 3.0.3 (GH-32111)
m-aciek [Mon, 28 Mar 2022 17:05:01 +0000 (19:05 +0200)] 
bpo-47138: Fix documentation build by pinning Jinja version to 3.0.3 (GH-32111)

3 years agoPost release updates
Ned Deily [Wed, 16 Mar 2022 15:30:13 +0000 (11:30 -0400)] 
Post release updates

3 years ago3.7.13 v3.7.13
Ned Deily [Wed, 16 Mar 2022 13:27:21 +0000 (09:27 -0400)] 
3.7.13

3 years agobpo-46948: Fix launcher installer build failure due to first part of fix (GH-31920...
Miss Islington (bot) [Wed, 16 Mar 2022 02:00:23 +0000 (19:00 -0700)] 
bpo-46948: Fix launcher installer build failure due to first part of fix (GH-31920) (GH-31925)

(cherry picked from commit 708812085355c92f32e547d1f1d1f29aefbbc27e)

Co-authored-by: Steve Dower <steve.dower@python.org>
3 years agobpo-47024: Update Windows builds and macOS installer build to use OpenSSL 1.1.1n...
Ned Deily [Tue, 15 Mar 2022 19:30:49 +0000 (15:30 -0400)] 
bpo-47024: Update Windows builds and macOS installer build to use OpenSSL 1.1.1n. (GH-31911)

3 years agoTidy changelog by removing redundant intermediate expat update items. (GH-31907)
Ned Deily [Tue, 15 Mar 2022 15:32:37 +0000 (11:32 -0400)] 
Tidy changelog by removing redundant intermediate expat update items. (GH-31907)

3 years agobpo-45405: Prevent internal configure error when running configure with recent versio...
Ned Deily [Tue, 15 Mar 2022 07:18:39 +0000 (03:18 -0400)] 
bpo-45405: Prevent internal configure error when running configure with recent versions of clang. (GH-28845) (GH-31890)

Change the configure logic to function properly on macOS when the compiler
outputs a platform triplet for option --print-multiarch.
The Apple Clang included with Xcode 13.3 now supports --print-multiarch
causing configure to fail without this change.

Co-authored-by: Ned Deily <nad@python.org>
(cherry picked from commit 9c4766772cda67648184f8ddba546a5fc0167f91)

Co-authored-by: David Bohman <debohman@gmail.com>
3 years agoRevert "bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820)" (GH-31882)
Ned Deily [Mon, 14 Mar 2022 21:01:11 +0000 (17:01 -0400)] 
Revert "bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820)" (GH-31882)

This reverts commit 0fbab8a593dcd94cfc788700dd9bf67a73f85920
as it breaks test_bdb and test_distutils with installed Pythons.

3 years agobpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820) (GH-31861)
Ned Deily [Sun, 13 Mar 2022 21:39:58 +0000 (17:39 -0400)] 
bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820) (GH-31861)

(cherry picked from commit c99ac3c364ee21be72263791b71ee8b55f64de08)

Co-authored-by: Pradyun Gedam <pgedam@bloomberg.net>
3 years agobpo-46985: Upgrade bundled pip to 22.0.4 (GH-31819) (GH-31852)
Ned Deily [Sun, 13 Mar 2022 19:58:02 +0000 (15:58 -0400)] 
bpo-46985: Upgrade bundled pip to 22.0.4 (GH-31819) (GH-31852)

(cherry picked from commit d87f1b787ed38dfd307d82452f2efe9dc5b93942)

Co-authored-by: Pradyun Gedam <pgedam@bloomberg.net>
3 years agobpo-46932: Update bundled libexpat to 2.4.7 (GH-31736) (GH-31741)
Miss Islington (bot) [Mon, 7 Mar 2022 23:11:09 +0000 (15:11 -0800)] 
bpo-46932: Update bundled libexpat to 2.4.7 (GH-31736) (GH-31741)

(cherry picked from commit 176835c3d5c70f4c1b152cc2062b549144e37094)

Co-authored-by: Steve Dower <steve.dower@python.org>
3 years agobpo-44549: Update bzip2 to 1.0.8 in Windows builds to mitigate CVE-2016-3189 and...
Steve Dower [Mon, 7 Mar 2022 19:34:46 +0000 (19:34 +0000)] 
bpo-44549: Update bzip2 to 1.0.8 in Windows builds to mitigate CVE-2016-3189 and CVE-2019-12900 (GH-31732) (GH-31735)

3 years agobpo-46948: Fix CVE-2022-26488 by ensuring the Windows Installer correctly uses the...
Steve Dower [Mon, 7 Mar 2022 17:37:20 +0000 (17:37 +0000)] 
bpo-46948: Fix CVE-2022-26488 by ensuring the Windows Installer correctly uses the install path during repair (GH-31730)

3 years agobpo-46756: Fix authorization check in urllib.request (GH-31353) (GH-31573)
Miss Islington (bot) [Fri, 25 Feb 2022 17:49:43 +0000 (09:49 -0800)] 
bpo-46756: Fix authorization check in urllib.request (GH-31353) (GH-31573)

Fix a bug in urllib.request.HTTPPasswordMgr.find_user_password() and
urllib.request.HTTPPasswordMgrWithPriorAuth.is_authenticated() which
allowed to bypass authorization. For example, access to URI "example.org/foobar"
was allowed if the user was authorized for URI "example.org/foo".
(cherry picked from commit e2e72567a1c94c548868f6ee5329363e6036057a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agobpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487) (GH-31521) 31544/head 31545/head
Miss Islington (bot) [Wed, 23 Feb 2022 21:51:08 +0000 (13:51 -0800)] 
bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487) (GH-31521)

(cherry picked from commit 1935e1cc284942bec8006287c939e295e1a7bf13)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
3 years agoUpdate copyright year to 2022. (GH-30335) (GH-31477)
Miss Islington (bot) [Mon, 21 Feb 2022 19:44:49 +0000 (11:44 -0800)] 
Update copyright year to 2022. (GH-30335) (GH-31477)

Automerge-Triggered-By: GH:benjaminp
(cherry picked from commit ba00f0d93a4aea85ae8089f139856a7c450584d7)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
3 years agobpo-46784: Add newly exported expat symbols to the namespace. (GH-31397) (GH-31418)
Miss Islington (bot) [Mon, 21 Feb 2022 19:18:26 +0000 (11:18 -0800)] 
bpo-46784: Add newly exported expat symbols to the namespace. (GH-31397) (GH-31418)

The libexpat 2.4.1 upgrade from  introduced the following new exported symbols:

* `testingAccountingGetCountBytesDirect`
* `testingAccountingGetCountBytesIndirect`
* `unsignedCharToPrintable`
* `XML_SetBillionLaughsAttackProtectionActivationThreshold`
* `XML_SetBillionLaughsAttackProtectionMaximumAmplification`

We need to adjust [Modules/expat/pyexpatns.h](https://github.com/python/cpython/blob/master/Modules/expat/pyexpatns.h)

(The newer libexpat upgrade  has no new symbols).

Automerge-Triggered-By: GH:gpshead
(cherry picked from commit 6312c1052c0186b4596fc45c42fd3ade9f8f5911)

Co-authored-by: Yilei "Dolee" Yang <yileiyang@google.com>
3 years agobpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) (GH-31471)
Miss Islington (bot) [Mon, 21 Feb 2022 19:03:08 +0000 (11:03 -0800)] 
bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) (GH-31471)

Curly brackets were never allowed in namespace URIs
according to RFC 3986, and so-called namespace-validating
XML parsers have the right to reject them a invalid URIs.

libexpat >=2.4.5 has become strcter in that regard due to
related security issues; with ET.XML instantiating a
namespace-aware parser under the hood, this test has no
future in CPython.

References:
- https://datatracker.ietf.org/doc/html/rfc3968
- https://www.w3.org/TR/xml-names/

Also, test_minidom.py: Support Expat >=2.4.5
(cherry picked from commit 2cae93832f46b245847bdc252456ddf7742ef45e)

Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
3 years agobpo-46400: Update libexpat from 2.4.1 to 2.4.4 (GH-31022) (GH-31298)
Dong-hee Na [Mon, 21 Feb 2022 18:45:55 +0000 (03:45 +0900)] 
bpo-46400: Update libexpat from 2.4.1 to 2.4.4 (GH-31022) (GH-31298)

Co-authored-by: Cyril Jouve <jv.cyril@gmail.com>
3 years agobpo-45618: Fix documentation build by pinning Docutils version to 0.17.1 (GH-31476)
Ned Deily [Mon, 21 Feb 2022 17:58:35 +0000 (12:58 -0500)] 
bpo-45618: Fix documentation build by pinning Docutils version to 0.17.1 (GH-31476)

4 years agobpo-41028: use generic version links in Docs index. 31155/head
Ned Deily [Tue, 28 Dec 2021 07:08:54 +0000 (02:08 -0500)] 
bpo-41028: use generic version links in Docs index.

4 years agoPost release updates
Ned Deily [Sat, 4 Sep 2021 21:58:07 +0000 (17:58 -0400)] 
Post release updates

4 years ago3.7.12 v3.7.12
Ned Deily [Sat, 4 Sep 2021 03:49:21 +0000 (23:49 -0400)] 
3.7.12

4 years ago[3.7] bpo-44394: Update libexpat copy to 2.4.1 (GH-26945) (GH-28042)
Łukasz Langa [Tue, 31 Aug 2021 05:11:53 +0000 (07:11 +0200)] 
[3.7] bpo-44394: Update libexpat copy to 2.4.1 (GH-26945) (GH-28042)

Update the vendored copy of libexpat to 2.4.1 (from 2.2.8) to get the
fix for the CVE-2013-0340 "Billion Laughs" vulnerability. This copy
is most used on Windows and macOS.

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>.
(cherry picked from commit 3fc5d84046ddbd66abac5b598956ea34605a4e5d)

4 years ago[3.7] bpo-43124: Fix smtplib multiple CRLF injection (GH-25987) (GH-28037)
Miss Islington (bot) [Mon, 30 Aug 2021 19:16:24 +0000 (12:16 -0700)] 
[3.7] bpo-43124: Fix smtplib multiple CRLF injection (GH-25987) (GH-28037)

Co-authored-by: Miguel Brito <5544985+miguendes@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 0897253f426068ea6a6fbe0ada01689af9ef1019)

4 years agobpo-45001: Make email date parsing more robust against malformed input (GH-27946...
Miss Islington (bot) [Mon, 30 Aug 2021 18:48:04 +0000 (11:48 -0700)] 
bpo-45001: Make email date parsing more robust against malformed input (GH-27946) (GH-27975)

Various date parsing utilities in the email module, such as
email.utils.parsedate(), are supposed to gracefully handle invalid
input, typically by raising an appropriate exception or by returning
None.

The internal email._parseaddr._parsedate_tz() helper used by some of
these date parsing routines tries to be robust against malformed input,
but unfortunately it can still crash ungracefully when a non-empty but
whitespace-only input is passed. This manifests as an unexpected
IndexError.

In practice, this can happen when parsing an email with only a newline
inside a ‘Date:’ header, which unfortunately happens occasionally in the
real world.

Here's a minimal example:

    $ python
    Python 3.9.6 (default, Jun 30 2021, 10:22:16)
    [GCC 11.1.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import email.utils
    >>> email.utils.parsedate('foo')
    >>> email.utils.parsedate(' ')
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib/python3.9/email/_parseaddr.py", line 176, in parsedate
        t = parsedate_tz(data)
      File "/usr/lib/python3.9/email/_parseaddr.py", line 50, in parsedate_tz
        res = _parsedate_tz(data)
      File "/usr/lib/python3.9/email/_parseaddr.py", line 72, in _parsedate_tz
        if data[0].endswith(',') or data[0].lower() in _daynames:
    IndexError: list index out of range

The fix is rather straight-forward: guard against empty lists, after
splitting on whitespace, but before accessing the first element.
(cherry picked from commit 989f6a3800f06b2bd31cfef7c3269a443ad94fac)

Co-authored-by: wouter bolsterlee <wouter@bolsterl.ee>
4 years agoFix Sphinx directive typo in 3.7.11 changelog.
Ned Deily [Mon, 5 Jul 2021 23:46:32 +0000 (19:46 -0400)] 
Fix Sphinx directive typo in 3.7.11 changelog.

4 years agoPost release updates
Ned Deily [Mon, 28 Jun 2021 18:33:52 +0000 (14:33 -0400)] 
Post release updates

4 years ago3.7.11 v3.7.11
Ned Deily [Mon, 28 Jun 2021 16:51:36 +0000 (12:51 -0400)] 
3.7.11

4 years agobpo-44022: Improve the regression test. (GH-26503) (GH-26507)
Miss Islington (bot) [Thu, 3 Jun 2021 04:23:40 +0000 (21:23 -0700)] 
bpo-44022: Improve the regression test. (GH-26503) (GH-26507)

It wasn't actually detecting the regression due to the
assertion being too lenient.
(cherry picked from commit e60ab843cbb016fb6ff8b4f418641ac05a9b2fcc)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years ago[3.7] bpo-43882 - Mention urllib.parse changes in Whats New section for 3.7.11 (GH...
Senthil Kumaran [Thu, 20 May 2021 20:15:01 +0000 (13:15 -0700)] 
[3.7] bpo-43882 - Mention urllib.parse changes in Whats New section for 3.7.11 (GH-26267)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years ago[3.7] bpo-40297: Fix test_socket.CANTest.testSendFrame (GH-25960)
Zachary Ware [Fri, 7 May 2021 19:36:32 +0000 (14:36 -0500)] 
[3.7] bpo-40297: Fix test_socket.CANTest.testSendFrame (GH-25960)

4 years agobpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue...
Miss Islington (bot) [Thu, 6 May 2021 17:10:13 +0000 (10:10 -0700)] 
bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue (GH-25916) (GH-25934)

Fixes http.client potential denial of service where it could get stuck reading lines from a malicious server after a 100 Continue response.

Co-authored-by: Gregory P. Smith <greg@krypto.org>
(cherry picked from commit 47895e31b6f626bc6ce47d175fe9d43c1098909d)

Co-authored-by: Gen Xu <xgbarry@gmail.com>
4 years ago[3.7] bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and...
Miss Islington (bot) [Thu, 6 May 2021 16:52:36 +0000 (09:52 -0700)] 
[3.7] bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and tabs. (GH-25923)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 76cd81d60310d65d01f9d7b48a8985d8ab89c8b4)
Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
(cherry picked from commit 515a7bc4e13645d0945b46a8e1d9102b918cd407)

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
4 years agobpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391) (#25249)
Miss Islington (bot) [Tue, 4 May 2021 12:46:40 +0000 (05:46 -0700)] 
bpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391) (#25249)

Fix Regular Expression Denial of Service (ReDoS) vulnerability in
urllib.request.AbstractBasicAuthHandler. The ReDoS-vulnerable regex
has quadratic worst-case complexity and it allows cause a denial of
service when identifying crafted invalid RFCs. This ReDoS issue is on
the client side and needs remote attackers to control the HTTP server.
(cherry picked from commit 7215d1ae25525c92b026166f9d5cac85fb1defe1)

Co-authored-by: Yeting Li <liyt@ios.ac.cn>
4 years agobpo-41561: Fix testing with OpenSSL 1.0.2 (GH-25355) (GH-25858)
Miss Islington (bot) [Mon, 3 May 2021 20:26:18 +0000 (13:26 -0700)] 
bpo-41561: Fix testing with OpenSSL 1.0.2 (GH-25355) (GH-25858)

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 3447750073aff229b049e4ccd6217db2811dcfd1)

Co-authored-by: Christian Heimes <christian@python.org>
4 years ago[3.7] bpo-41561: Add workaround for Ubuntu's custom security level (GH-24915) (GH...
Christian Heimes [Mon, 3 May 2021 19:58:38 +0000 (21:58 +0200)] 
[3.7] bpo-41561: Add workaround for Ubuntu's custom security level (GH-24915) (GH-24928)

Ubuntu 20.04 comes with a patched OpenSSL 1.1.1. Default security level
2 blocks TLS 1.0 and 1.1 connections. Regular OpenSSL 1.1.1 builds allow
TLS 1.0 and 1.1 on security level 2.

See:
See: https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1899878
See: https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1917625
Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit f6c6b5821bff815bdc810de53992fd1fbdb2edd4)

Co-authored-by: Christian Heimes <christian@python.org>
4 years ago[3.7] bpo-43660: Fix crash when displaying exceptions with custom values for sys...
Pablo Galindo [Mon, 29 Mar 2021 23:24:17 +0000 (00:24 +0100)] 
[3.7] bpo-43660: Fix crash when displaying exceptions with custom values for sys.stderr (GH-25075). (GH-25085)

(cherry picked from commit 09b90a037d18f5d4acdf1b14082e57bda78e85d3)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agobpo-42988: Remove the pydoc getfile feature (GH-25015) (#25066)
Miss Islington (bot) [Mon, 29 Mar 2021 15:39:05 +0000 (08:39 -0700)] 
bpo-42988: Remove the pydoc getfile feature (GH-25015) (#25066)

CVE-2021-3426: Remove the "getfile" feature of the pydoc module which
could be abused to read arbitrary files on the disk (directory
traversal vulnerability). Moreover, even source code of Python
modules can contain sensitive data like passwords. Vulnerability
reported by David Schwörer.
(cherry picked from commit 9b999479c0022edfc9835a8a1f06e046f3881048)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 years ago[3.7] bpo-43285 Make ftplib not trust the PASV response. (GH-24838) (GH-24881) (GH...
Miss Islington (bot) [Tue, 16 Mar 2021 21:19:55 +0000 (14:19 -0700)] 
[3.7] bpo-43285 Make ftplib not trust the PASV response. (GH-24838) (GH-24881) (GH-24883)

The IPv4 address value returned from the server in response to the PASV command
should not be trusted.  This prevents a malicious FTP server from using the
response to probe IPv4 address and port combinations on the client network.

Instead of using the returned address, we use the IP address we're
already connected to.  This is the strategy other ftp clients adopted,
and matches the only strategy available for the modern IPv6 EPSV command
where the server response must return a port number and nothing else.

For the rare user who _wants_ this ugly behavior, set a `trust_server_pasv_ipv4_address`
attribute on your `ftplib.FTP` instance to True..
(cherry picked from commit 0ab152c6b5d95caa2dc1a30fa96e10258b5f188e)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
(cherry picked from commit 664d1d16274b47eea6ec92572e1ebf3939a6fa0c)

4 years agoPin test runner to Ubuntu 18 to un-break CI (GH-24715) (GH-24716)
Miss Islington (bot) [Wed, 3 Mar 2021 17:24:05 +0000 (09:24 -0800)] 
Pin test runner to Ubuntu 18 to un-break CI (GH-24715) (GH-24716)

(cherry picked from commit 94894dd45e4bad6efb27eac4497b24cdc18b3e2d)

Co-authored-by: Brandt Bucher <brandt@python.org>
Co-authored-by: Brandt Bucher <brandt@python.org>
4 years ago[3.7] bpo-43293: Doc: move note about GIL to top of threading module (GH-24622) ...
Guanzhong Chen [Fri, 26 Feb 2021 10:28:43 +0000 (05:28 -0500)] 
[3.7] bpo-43293: Doc: move note about GIL to top of threading module (GH-24622) (#24642)

The note about the GIL was buried pretty deep in the threading documentation,
and this made it hard for first time users to discover why their attempts
at using threading to parallelizing their application did not work.

In this commit, the note is moved to the top of the module documention for
visibility..
(cherry picked from commit 32181be6081f6c70a1e0bd0540050805c8e88e83)

Co-authored-by: Guanzhong Chen <quantum2048@gmail.com>
4 years agoPost release updates
Ned Deily [Tue, 16 Feb 2021 05:00:11 +0000 (00:00 -0500)] 
Post release updates

4 years ago3.7.10 v3.7.10
Ned Deily [Tue, 16 Feb 2021 01:29:22 +0000 (20:29 -0500)] 
3.7.10

4 years agoAdd a warning block around the get_referrers() documentation (GH-24511) (GH-24544)
Miss Islington (bot) [Tue, 16 Feb 2021 00:58:05 +0000 (16:58 -0800)] 
Add a warning block around the get_referrers() documentation (GH-24511) (GH-24544)

(cherry picked from commit 813db24f7c2c536d587d1832c3c52b44fa9e242e)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years ago[3.7] bpo-42967: only use '&' as a query string separator (GH-24297) (GH-24531)
Senthil Kumaran [Mon, 15 Feb 2021 18:34:14 +0000 (10:34 -0800)] 
[3.7] bpo-42967: only use '&' as a query string separator (GH-24297)  (GH-24531)

bpo-42967: [security] Address a web cache-poisoning issue reported in
urllib.parse.parse_qsl().

urllib.parse will only us "&" as query string separator by default
instead of both ";" and "&" as allowed in earlier versions. An optional
argument seperator with default value "&" is added to specify the
separator.

Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Adam Goldschmidt <adamgold7@gmail.com>
(cherry picked from commit fcbe0cb04d35189401c0c880ebfb4311e952d776)

4 years ago[3.7] closes bpo-42938: Replace snprintf with Python unicode formatting in ctypes...
Benjamin Peterson [Mon, 18 Jan 2021 21:24:02 +0000 (15:24 -0600)] 
[3.7] closes bpo-42938: Replace snprintf with Python unicode formatting in ctypes param reprs. (GH-24249)

(cherry picked from commit 916610ef90a0d0761f08747f7b0905541f0977c7)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
5 years agoBring Python into the new year. (GH-24036) (GH-24052)
Miss Islington (bot) [Fri, 1 Jan 2021 18:40:58 +0000 (10:40 -0800)] 
Bring Python into the new year. (GH-24036) (GH-24052)

(cherry picked from commit de6f20a6de48d63066b2cf5b317f50629f01d74a)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
5 years agobpo-42794: Update test_nntplib to use offical group name for testing (GH-24037) ...
Miss Islington (bot) [Fri, 1 Jan 2021 18:37:35 +0000 (10:37 -0800)] 
bpo-42794: Update test_nntplib to use offical group name for testing (GH-24037) (GH-24041)

(cherry picked from commit ec3165320e81ac87edcb85c86c452528ddbaec1c)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
5 years agobpo-17140: Document multiprocessing's ThreadPool (GH-23812) (GH-23836)
Miss Islington (bot) [Fri, 18 Dec 2020 18:38:49 +0000 (10:38 -0800)] 
bpo-17140: Document multiprocessing's ThreadPool (GH-23812) (GH-23836)

Up until now, the `multiprocessing.pool.ThreadPool` class has gone
undocumented, despite being a public class in multiprocessing that is
included in `multiprocessing.pool.__all__`.
(cherry picked from commit 84ebcf271a2cc8bfd1762acb279502b8b6ef236e)

Co-authored-by: Matt Wozniski <mwozniski@bloomberg.net>
5 years ago[3.7] Bumps [actions/cache](https://github.com/actions/cache) from v1 to v2.1.3.... 23634/head
Benjamin Peterson [Tue, 1 Dec 2020 15:05:57 +0000 (09:05 -0600)] 
[3.7] Bumps [actions/cache](https://github.com/actions/cache) from v1 to v2.1.3. (GH-23596)

* build(deps): bump actions/cache from v2.1.2 to v2.1.3 (23582)

Bumps [actions/cache](https://github.com/actions/cache) from v2.1.2 to v2.1.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.2...0781355a23dac32fd3bac414512f4b903437991a)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit a43fea88577c460eed7cc92a37b5fce787d6aab1)

* [3.7] build(deps): bump actions/cache from v2.1.2 to v2.1.3 (23582)

Bumps [actions/cache](https://github.com/actions/cache) from v2.1.2 to v2.1.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.2...0781355a23dac32fd3bac414512f4b903437991a)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>.
(cherry picked from commit a43fea88577c460eed7cc92a37b5fce787d6aab1)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agobpo-40791: Make compare_digest more constant-time. (GH-23438)
Miss Islington (bot) [Sun, 22 Nov 2020 17:33:09 +0000 (09:33 -0800)] 
bpo-40791: Make compare_digest more constant-time. (GH-23438)

The existing volatile `left`/`right` pointers guarantee that the reads will all occur, but does not guarantee that they will be _used_. So a compiler can still short-circuit the loop, saving e.g. the overhead of doing the xors and especially the overhead of the data dependency between `result` and the reads. That would change performance depending on where the first unequal byte occurs. This change removes that optimization.

(This is change GH-1 from https://bugs.python.org/issue40791 .)
(cherry picked from commit 31729366e2bc09632e78f3896dbce0ae64914f28)

Co-authored-by: Devin Jeanpierre <jeanpierreda@google.com>
5 years ago[3.7] bpo-42336: Improve PCbuild batch files (GH-23325) (GH-23373)
Steve Dower [Wed, 18 Nov 2020 18:01:52 +0000 (18:01 +0000)] 
[3.7] bpo-42336: Improve PCbuild batch files (GH-23325) (GH-23373)

* bpo-42336: Improve PCbuild batch files (GH-23325)

* Remove ARM platforms

5 years ago[3.7] bpo-42103: Improve validation of Plist files. (GH-22882) (#23117)
Serhiy Storchaka [Tue, 10 Nov 2020 19:54:15 +0000 (21:54 +0200)] 
[3.7] bpo-42103: Improve validation of Plist files. (GH-22882) (#23117)

* Prevent some possible DoS attacks via providing invalid Plist files
  with extremely large number of objects or collection sizes.
* Raise InvalidFileException for too large bytes and string size instead of returning garbage.
* Raise InvalidFileException instead of ValueError for specific invalid datetime (NaN).
* Raise InvalidFileException instead of TypeError for non-hashable dict keys.
* Add more tests for invalid Plist files..
(cherry picked from commit 34637a0ce21e7261b952fbd9d006474cc29b681f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years ago[3.7] Remove 3.5 from Doc version switcher in master. (GH-22886) (#22890)
larryhastings [Thu, 22 Oct 2020 14:30:11 +0000 (07:30 -0700)] 
[3.7] Remove 3.5 from Doc version switcher in master. (GH-22886) (#22890)

(cherry picked from commit 283f9a253b4ff4df728558205629b3bb3af6e47f)

5 years agobpo-41944: No longer call eval() on content received via HTTP in the CJK codec tests...
Miss Skeleton (bot) [Tue, 20 Oct 2020 02:38:40 +0000 (19:38 -0700)] 
bpo-41944: No longer call eval() on content received via HTTP in the CJK codec tests (GH-22566) (GH-22578)

(cherry picked from commit 2ef5caa58febc8968e670e39e3d37cf8eef3cab8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-42051: Reject XML entity declarations in plist files (#22760) (GH-22801)
Ned Deily [Tue, 20 Oct 2020 02:36:27 +0000 (22:36 -0400)] 
bpo-42051: Reject XML entity declarations in plist files (#22760) (GH-22801)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
5 years ago[3.7] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc...
Pablo Galindo [Thu, 8 Oct 2020 18:50:37 +0000 (19:50 +0100)] 
[3.7] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598). (GH-22601)

(cherry picked from commit 27ac19cca2c639caaf6fedf3632fe6beb265f24f)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agoPost release updates
Ned Deily [Mon, 17 Aug 2020 22:18:11 +0000 (18:18 -0400)] 
Post release updates

5 years ago3.7.9 v3.7.9
Ned Deily [Sat, 15 Aug 2020 05:20:16 +0000 (01:20 -0400)] 
3.7.9

5 years agobpo-41100: additional fixes for testing on macOS 11 Big Sur Intel
Ned Deily [Sat, 15 Aug 2020 03:48:14 +0000 (23:48 -0400)] 
bpo-41100: additional fixes for testing on macOS 11 Big Sur Intel

Note: macOS 11 is not yet released, this release of Python is not
fully supported on 11.0, and not all tests pass.

5 years agobpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467...
Miss Islington (bot) [Fri, 14 Aug 2020 09:44:00 +0000 (02:44 -0700)] 
bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467) (GH-21878)

(cherry picked from commit 52698c7ad9eae9feb35839fde17a7d1da8036a9b)

Co-authored-by: Yury Selivanov <yury@magic.io>
5 years agobpo-41455: Provide a link to how the third generation is collected in the GC docs...
Miss Islington (bot) [Wed, 12 Aug 2020 10:53:13 +0000 (03:53 -0700)] 
bpo-41455: Provide a link to how the third generation is collected in the GC docs (GH-21703) (GH-21788)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
(cherry picked from commit 82ca8fada15b121866530f2cdac1b7055be4a244)

Co-authored-by: Yaroslav Pankovych <31005942+P-Alban@users.noreply.github.com>
5 years agobpo-41475: Fix note in "What's new in 3.7" (GH-21733) (GH-21835)
Miss Islington (bot) [Wed, 12 Aug 2020 10:36:20 +0000 (03:36 -0700)] 
bpo-41475: Fix note in "What's new in 3.7" (GH-21733) (GH-21835)

(cherry picked from commit 76643c10ede2813ca921464fe839e81caee21a84)

Co-authored-by: Ram Rachum <ram@rachum.com>
5 years agobpo-39603: Prevent header injection in http methods (GH-18485) (GH-21538)
Miss Islington (bot) [Sun, 19 Jul 2020 09:27:35 +0000 (02:27 -0700)] 
bpo-39603: Prevent header injection in http methods (GH-18485) (GH-21538)

reject control chars in http method in http.client.putrequest to prevent http header injection
(cherry picked from commit 8ca8a2e8fb068863c1138f07e3098478ef8be12e)

Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
5 years agobpo-41304: Update NEWS to include CVE-2020-15801 reference (GH-21521) (GH-21524)
Miss Islington (bot) [Sat, 18 Jul 2020 09:00:57 +0000 (02:00 -0700)] 
bpo-41304: Update NEWS to include CVE-2020-15801 reference (GH-21521) (GH-21524)

(cherry picked from commit 164b04c47e61bd35d55e61bc74f9fd646eba81bb)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495) (#21499)
Steve Dower [Wed, 15 Jul 2020 22:24:56 +0000 (23:24 +0100)] 
bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495) (#21499)

5 years agobpo-39017: Avoid infinite loop in the tarfile module (GH-21454) (GH-21484)
Miss Islington (bot) [Wed, 15 Jul 2020 12:35:08 +0000 (05:35 -0700)] 
bpo-39017: Avoid infinite loop in the tarfile module (GH-21454) (GH-21484)

Avoid infinite loop when reading specially crafted TAR files using the tarfile module
(CVE-2019-20907).
(cherry picked from commit 5a8d121a1f3ef5ad7c105ee378cc79a3eac0c7d4)

Co-authored-by: Rishi <rishi_devan@mail.com>
5 years agobpo-41288: Fix a crash in unpickling invalid NEWOBJ_EX. (GH-21458) (GH-21461)
Miss Islington (bot) [Mon, 13 Jul 2020 18:17:01 +0000 (11:17 -0700)] 
bpo-41288: Fix a crash in unpickling invalid NEWOBJ_EX. (GH-21458) (GH-21461)

Automerge-Triggered-By: @tiran
(cherry picked from commit 4f309abf55f0e6f8950ac13d6ec83c22b8d47bf8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agocloses bpo-41235: Fix the error handling in SSLContext.load_dh_params() (GH-21389)
Miss Islington (bot) [Wed, 8 Jul 2020 04:55:36 +0000 (21:55 -0700)] 
closes bpo-41235: Fix the error handling in SSLContext.load_dh_params() (GH-21389)

(cherry picked from commit aebc0495572c5bb85d2bd97d27cf93ab038b5a6a)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years ago[3.7] bpo-29778: Ensure python3.dll is loaded from correct locations when Python...
Steve Dower [Mon, 6 Jul 2020 17:24:59 +0000 (18:24 +0100)] 
[3.7] bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded (GH-21297) (#21298)

* bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded.

* Add CVE number

5 years ago[3.7] bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH...
Tapas Kundu [Tue, 30 Jun 2020 19:20:21 +0000 (00:50 +0530)] 
[3.7] bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH-21033) (GH-21231)

CVE-2020-14422
The __hash__() methods of classes IPv4Interface and IPv6Interface had issue
of generating constant hash values of 32 and 128 respectively causing hash collisions.
The fix uses the hash() function to generate hash values for the objects
instead of XOR operation
(cherry picked from commit b30ee26e366bf509b7538d79bfec6c6d38d53f28)

Co-authored-by: Ravi Teja P <rvteja92@gmail.com>
Signed-off-by: Tapas Kundu <tkundu@vmware.com>
5 years agoPost release updates
Ned Deily [Sun, 28 Jun 2020 11:19:53 +0000 (07:19 -0400)] 
Post release updates

5 years ago3.7.8 v3.7.8
Ned Deily [Sat, 27 Jun 2020 08:35:53 +0000 (04:35 -0400)] 
3.7.8

5 years agoBPO-41100: Support macOS 11 when building (GH-21113) (GH-21155)
Miss Islington (bot) [Thu, 25 Jun 2020 15:15:52 +0000 (08:15 -0700)] 
BPO-41100: Support macOS 11 when building (GH-21113) (GH-21155)

(cherry picked from commit 8ea6353f60625c96ce96588c70ff24a77f8c71f9)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
5 years ago[3.7] bpo-41009: fix requires_OS_version() class decorator (GH-20942) (GH-20949)
Christian Heimes [Thu, 25 Jun 2020 12:11:13 +0000 (14:11 +0200)] 
[3.7] bpo-41009: fix requires_OS_version() class decorator (GH-20942) (GH-20949)

Signed-off-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: @tiran.
(cherry picked from commit bb6ec14479f18c32e71e43f2785f177aa17aabbd)

Co-authored-by: Christian Heimes <christian@python.org>
5 years agoUpdate macOS installer reader for 3.7.8
Ned Deily [Thu, 25 Jun 2020 10:27:57 +0000 (06:27 -0400)] 
Update macOS installer reader for 3.7.8

5 years agoFix macOS installer build typos
Ned Deily [Thu, 25 Jun 2020 07:41:19 +0000 (03:41 -0400)] 
Fix macOS installer build typos

5 years agoPost release update
Ned Deily [Thu, 18 Jun 2020 03:49:37 +0000 (23:49 -0400)] 
Post release update

5 years ago3.7.8rc1 v3.7.8rc1
Ned Deily [Wed, 17 Jun 2020 08:48:12 +0000 (04:48 -0400)] 
3.7.8rc1

5 years agobpo-40204: Pin Sphinx version to 2.3.1 in Doc/Makefile
Ned Deily [Wed, 17 Jun 2020 08:27:55 +0000 (04:27 -0400)] 
bpo-40204: Pin Sphinx version to 2.3.1 in Doc/Makefile

5 years agoUpdate missed Python.app copyright.
Ned Deily [Wed, 17 Jun 2020 07:49:24 +0000 (03:49 -0400)] 
Update missed Python.app copyright.

5 years agoUpdate macOS Python Launcher defaults to python3.
Ned Deily [Wed, 17 Jun 2020 07:33:05 +0000 (03:33 -0400)] 
Update macOS Python Launcher defaults to python3.

5 years agobpo-39580: add check for CLI installation on macOS
Ned Deily [Wed, 17 Jun 2020 07:18:55 +0000 (03:18 -0400)] 
bpo-39580: add check for CLI installation on macOS

Adds a simple check for whether or not the package is being installed in the GUI or using installer on the command line. This addresses an issue where CLI-based software management tools (such as Munki) unexpectedly open Finder windows into a GUI session during installation runs.

5 years agoUpdate the macOS installer build scripts
Ned Deily [Wed, 17 Jun 2020 04:19:32 +0000 (00:19 -0400)] 
Update the macOS installer build scripts
Change includes to fix building with Python 3.x and to
build correctly on newer macOS systems with SIP.

5 years agoSynchronize macOS installer with 3.9
Ned Deily [Wed, 17 Jun 2020 01:57:09 +0000 (21:57 -0400)] 
Synchronize macOS installer with 3.9

5 years agobpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491) (GH-20900)
Miss Islington (bot) [Mon, 15 Jun 2020 22:01:19 +0000 (15:01 -0700)] 
bpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491) (GH-20900)

Co-authored-by: Xavier Fernandez <xav.fernandez@gmail.com>
(cherry picked from commit e63cc2f64668bd1d4581f8efa7089af7e08863b8)

Co-authored-by: Ned Deily <nad@python.org>