Skip to content
Permalink
3.6

Commits on Feb 16, 2021

  1. Post release updates

    ned-deily committed Feb 16, 2021
  2. 3.6.13

    ned-deily committed Feb 16, 2021

Commits on Feb 15, 2021

  1. [3.6] bpo-42967: only use '&' as a query string separator (GH-24297) (G…

    …H-24532)
    
    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>
    4 people committed Feb 15, 2021

Commits on Jan 18, 2021

  1. [3.6] closes bpo-42938: Replace snprintf with Python unicode formatti…

    …ng in ctypes param reprs. (GH-24250)
    
    (cherry picked from commit 916610e)
    
    Co-authored-by: Benjamin Peterson <benjamin@python.org>
    benjaminp committed Jan 18, 2021

Commits on Jan 2, 2021

  1. [3.6] Bring Python into the new year. (GH-24036). (GH-24054)

    (cherry picked from commit de6f20a)
    
    Co-authored-by: Dong-hee Na <donghee.na@python.org>
    corona10 committed Jan 2, 2021

Commits on Jan 1, 2021

  1. bpo-42794: Update test_nntplib to use offical group name for testing (G…

    …H-24037) (GH-24042)
    
    (cherry picked from commit ec31653)
    
    Co-authored-by: Dong-hee Na <donghee.na@python.org>
    miss-islington and corona10 committed Jan 1, 2021

Commits on Dec 14, 2020

  1. bpo-40791: Make compare_digest more constant-time. (GH-23438) (GH-23767)

    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 3172936)
    
    Co-authored-by: Devin Jeanpierre <jeanpierreda@google.com>
    miss-islington and ssbr committed Dec 14, 2020

Commits on Nov 10, 2020

  1. bpo-35560: Remove assertion from format(float, "n") (GH-11288) (GH-23231

    )
    
    Fix an assertion error in format() in debug build for floating point
    formatting with "n" format, zero padding and small width. Release build is
    not impacted. Patch by Karthikeyan Singaravelan.
    (cherry picked from commit 3f7983a)
    
    Co-authored-by: Xtreak <tir.karthi@gmail.com>
    miss-islington and tirkarthi committed Nov 10, 2020
  2. [3.6] bpo-42103: Improve validation of Plist files. (GH-22882) (GH-23118

    )
    
    * 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 34637a0)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    serhiy-storchaka committed Nov 10, 2020

Commits on Oct 22, 2020

  1. [3.6] Remove 3.5 from Doc version switcher in master. (GH-22886) (#22891

    )
    
    (cherry picked from commit 283f9a2)
    larryhastings committed Oct 22, 2020

Commits on Oct 20, 2020

  1. bpo-41944: No longer call eval() on content received via HTTP in the …

    …CJK codec tests (GH-22566) (GH-22579)
    
    (cherry picked from commit 2ef5caa)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka committed Oct 20, 2020
  2. bpo-42051: Reject XML entity declarations in plist files (GH-22760) (G…

    …H-22801) (GH-22804)
    
    Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
    (cherry picked from commit e512bc7)
    
    Co-authored-by: Ned Deily <nad@python.org>
    miss-islington and ned-deily committed Oct 20, 2020
  3. Disable macOS CI tests in azure-pipelines (GH-22639)

    ned-deily committed Oct 20, 2020

Commits on Aug 17, 2020

  1. Post release updates

    ned-deily committed Aug 17, 2020

Commits on Aug 15, 2020

  1. 3.6.12

    ned-deily committed Aug 15, 2020

Commits on Jul 19, 2020

  1. bpo-39603: Prevent header injection in http methods (GH-18485) (GH-21539

    )
    
    reject control chars in http method in http.client.putrequest to prevent http header injection
    (cherry picked from commit 8ca8a2e)
    
    Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
    miss-islington and amiremohamadi committed Jul 19, 2020

Commits on Jul 15, 2020

  1. bpo-39017: Avoid infinite loop in the tarfile module (GH-21454) (#21485)

    Avoid infinite loop when reading specially crafted TAR files using the tarfile module
    (CVE-2019-20907).
    (cherry picked from commit 5a8d121)
    
    Co-authored-by: Rishi <rishi_devan@mail.com>
    miss-islington and rishi93 committed Jul 15, 2020

Commits on Jul 13, 2020

  1. bpo-41288: Fix a crash in unpickling invalid NEWOBJ_EX. (GH-21458) (G…

    …H-21462)
    
    Automerge-Triggered-By: @tiran
    (cherry picked from commit 4f309ab)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka committed Jul 13, 2020

Commits on Jul 6, 2020

  1. [3.6] bpo-29778: Ensure python3.dll is loaded from correct locations …

    …when Python is embedded (GH-21298) (#21354)
    
    * bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded (GH-21298)
    
    * bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded.
    
    * Add CVE number
    
    * Updates for 3.6
    zooba committed Jul 6, 2020

Commits on Jun 30, 2020

  1. [3.6] bpo-41004: Resolve hash collisions for IPv4Interface and IPv6In…

    …terface (GH-21033) (GH-21232)
    
    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 b30ee26)
    
    Co-authored-by: Ravi Teja P <rvteja92@gmail.com>
    
    Signed-off-by: Tapas Kundu <tkundu@vmware.com>
    tapakund committed Jun 30, 2020

Commits on Jun 27, 2020

  1. Post release updates

    ned-deily committed Jun 27, 2020
  2. 3.6.11

    ned-deily committed Jun 27, 2020

Commits on Jun 18, 2020

  1. Post release update

    ned-deily committed Jun 18, 2020

Commits on Jun 17, 2020

  1. 3.6.11rc1

    ned-deily committed Jun 17, 2020

Commits on May 27, 2020

  1. bpo-39073: validate Address parts to disallow CRLF (GH-19007) (#19224)

    Disallow CR or LF in email.headerregistry.Address arguments to guard against header injection attacks.
    (cherry picked from commit 614f172)
    
    Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
    
    Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
    miss-islington and epicfaace committed May 27, 2020

Commits on May 23, 2020

  1. Add pt-br switcher to the Documentation website (GH-20301)

    rffontenelle committed May 23, 2020

Commits on May 19, 2020

  1. Doc: Python 3.10 in sidebar and version switcher. (GH-20209) (GH-20224)

    (cherry picked from commit 19e3e00)
    
    Co-authored-by: Julien Palard <julien@palard.fr>
    
    Co-authored-by: Julien Palard <julien@palard.fr>
    miss-islington and JulienPalard committed May 19, 2020

Commits on Apr 3, 2020

  1. bpo-39503: CVE-2020-8492: Fix AbstractBasicAuthHandler (GH-18284) (GH…

    …-19304)
    
    The AbstractBasicAuthHandler class of the urllib.request module uses
    an inefficient regular expression which can be exploited by an
    attacker to cause a denial of service. Fix the regex to prevent the
    catastrophic backtracking. Vulnerability reported by Ben Caller
    and Matt Schwager.
    
    AbstractBasicAuthHandler of urllib.request now parses all
    WWW-Authenticate HTTP headers and accepts multiple challenges per
    header: use the realm of the first Basic challenge.
    
    Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
    (cherry picked from commit 0b297d4)
    vstinner committed Apr 3, 2020
  2. bpo-40156: Copy Codecov configuration from master (GH-19306)

    Disable "Codevov patch" job on pull requests.
    vstinner committed Apr 3, 2020

Commits on Mar 14, 2020

  1. bpo-38576: Disallow control characters in hostnames in http.client (G…

    …H-18995) (GH-19002)
    
    Add host validation for control characters for more CVE-2019-18348 protection.
    (cherry picked from commit 9165add)
    
    Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
    miss-islington and epicfaace committed Mar 14, 2020
  2. bpo-39869: Fix typo in 'Instance objects' section. (GH-18889) (GH-18898)

    (cherry picked from commit e5e5632)
    
    Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>
    miss-islington and awecx committed Mar 14, 2020

Commits on Feb 13, 2020

  1. bpo-39545: Document restrictions on "await" and "async for" in f-stri…

    …ngs. (GH-18459)
    serhiy-storchaka committed Feb 13, 2020

Commits on Feb 10, 2020

  1. bpo-39545: docs: do not use await in f-strings (GH-18434)

    elenaoat committed Feb 10, 2020

Commits on Feb 4, 2020

  1. closes bpo-39510: Fix use-after-free in BufferedReader.readinto() (GH…

    …-18350)
    
    When called on a closed object, readinto() segfaults on account
    of a write to a freed buffer:
    
        ==220553== Process terminating with default action of signal 11 (SIGSEGV): dumping core
        ==220553==  Access not within mapped region at address 0x2A
        ==220553==    at 0x48408A0: memmove (vg_replace_strmem.c:1272)
        ==220553==    by 0x58DB0C: _buffered_readinto_generic (bufferedio.c:972)
        ==220553==    by 0x58DCBA: _io__Buffered_readinto_impl (bufferedio.c:1053)
        ==220553==    by 0x58DCBA: _io__Buffered_readinto (bufferedio.c.h:253)
    
    Reproducer:
    
        reader = open ("/dev/zero", "rb")
        _void  = reader.read (42)
        reader.close ()
        reader.readinto (bytearray (42)) GH-GH-GH- BANG!
    
    The problem exists since 2012 when commit dc46945 added code
    to free the read buffer on close().
    
    Signed-off-by: Philipp Gesang <philipp.gesang@intra2net.com>
    (cherry picked from commit cb1c074)
    
    Co-authored-by: Philipp Gesang <phg@phi-gamma.net>
    
    Co-authored-by: Philipp Gesang <phg@phi-gamma.net>
    miss-islington and phi-gamma committed Feb 4, 2020

Commits on Jan 31, 2020

Older