Skip to content
Permalink
3.7
Switch branches/tags

Commits on Apr 4, 2022

  1. bpo-47194: Update zlib to v1.2.12 on Windows to resolve CVE-2018-25032 (

    GH-32241) (GH-32251)
    
    (cherry picked from commit 6066739)
    
    Co-authored-by: Zachary Ware <zach@python.org>
    miss-islington and zware committed Apr 4, 2022

Commits on Mar 29, 2022

Commits on Mar 16, 2022

  1. Post release updates

    ned-deily committed Mar 16, 2022
  2. 3.7.13

    ned-deily committed Mar 16, 2022
  3. bpo-46948: Fix launcher installer build failure due to first part of …

    …fix (GH-31920) (GH-31925)
    
    (cherry picked from commit 7088120)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba committed Mar 16, 2022

Commits on Mar 15, 2022

  1. bpo-45405: Prevent internal configure error when running configure wi…

    …th 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 9c47667)
    
    Co-authored-by: David Bohman <debohman@gmail.com>
    ned-deily and debohman committed Mar 15, 2022

Commits on Mar 14, 2022

  1. Revert "bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820)" (G…

    …H-31882)
    
    This reverts commit 0fbab8a
    as it breaks test_bdb and test_distutils with installed Pythons.
    ned-deily committed Mar 14, 2022

Commits on Mar 13, 2022

  1. bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820) (GH-31861)

    (cherry picked from commit c99ac3c)
    
    Co-authored-by: Pradyun Gedam <pgedam@bloomberg.net>
    ned-deily and pradyunsg committed Mar 13, 2022
  2. bpo-46985: Upgrade bundled pip to 22.0.4 (GH-31819) (GH-31852)

    (cherry picked from commit d87f1b7)
    
    Co-authored-by: Pradyun Gedam <pgedam@bloomberg.net>
    ned-deily and pradyunsg committed Mar 13, 2022

Commits on Mar 7, 2022

  1. bpo-46932: Update bundled libexpat to 2.4.7 (GH-31736) (GH-31741)

    (cherry picked from commit 176835c)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba committed Mar 7, 2022
  2. bpo-44549: Update bzip2 to 1.0.8 in Windows builds to mitigate CVE-20…

    …16-3189 and CVE-2019-12900 (GH-31732) (GH-31735)
    zooba committed Mar 7, 2022
  3. bpo-46948: Fix CVE-2022-26488 by ensuring the Windows Installer corre…

    …ctly uses the install path during repair (GH-31730)
    zooba committed Mar 7, 2022

Commits on Feb 25, 2022

  1. bpo-46756: Fix authorization check in urllib.request (GH-31353) (GH-3…

    …1573)
    
    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 e2e7256)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka committed Feb 25, 2022

Commits on Feb 23, 2022

  1. bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487) (GH-31521)

    (cherry picked from commit 1935e1c)
    
    Co-authored-by: Dong-hee Na <donghee.na@python.org>
    miss-islington and corona10 committed Feb 23, 2022

Commits on Feb 21, 2022

  1. Update copyright year to 2022. (GH-30335) (GH-31477)

    Automerge-Triggered-By: GH:benjaminp
    (cherry picked from commit ba00f0d)
    
    Co-authored-by: Benjamin Peterson <benjamin@python.org>
    miss-islington and benjaminp committed Feb 21, 2022
  2. 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 6312c10)
    
    Co-authored-by: Yilei "Dolee" Yang <yileiyang@google.com>
    miss-islington and yilei committed Feb 21, 2022
  3. 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 2cae938)
    
    Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
    miss-islington and hartwork committed Feb 21, 2022
  4. 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>
    corona10 and jouve committed Feb 21, 2022

Commits on Sep 4, 2021

  1. Post release updates

    ned-deily committed Sep 4, 2021
  2. 3.7.12

    ned-deily committed Sep 4, 2021

Commits on Aug 31, 2021

  1. [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 3fc5d84)
    ambv committed Aug 31, 2021

Commits on Aug 30, 2021

  1. [3.7] bpo-43124: Fix smtplib multiple CRLF injection (GH-25987) (GH-2…

    …8037)
    
    Co-authored-by: Miguel Brito <5544985+miguendes@users.noreply.github.com>
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    (cherry picked from commit 0897253)
    miss-islington committed Aug 30, 2021
  2. 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 989f6a3)
    
    Co-authored-by: wouter bolsterlee <wouter@bolsterl.ee>
    miss-islington and wbolster committed Aug 30, 2021

Commits on Jul 5, 2021

Commits on Jun 28, 2021

  1. Post release updates

    ned-deily committed Jun 28, 2021
  2. 3.7.11

    ned-deily committed Jun 28, 2021

Commits on Jun 3, 2021

  1. 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 e60ab84)
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    miss-islington and gpshead committed Jun 3, 2021

Commits on May 20, 2021

  1. [3.7] bpo-43882 - Mention urllib.parse changes in Whats New section f…

    …or 3.7.11 (GH-26267)
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    orsenthil and gpshead committed May 20, 2021

Commits on May 6, 2021

  1. bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 1…

    …00 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 47895e3)
    
    Co-authored-by: Gen Xu <xgbarry@gmail.com>
    miss-islington and gen-xu committed May 6, 2021
Older