Skip to content

Commits on Oct 7, 2022

  1. Add a warning message about PyOS_snprintf (GH-95993)

    (cherry picked from commit c7b2204)
    
    Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
    miss-islington and eric-wieser committed Oct 7, 2022
  2. [3.11] GH-97002: Prevent _PyInterpreterFrames from backing more than …

    …one PyFrameObject (GH-98002)
    
    (cherry picked from commit 21a2d9f)
    miss-islington committed Oct 7, 2022

Commits on Oct 5, 2022

  1. [3.11] gh-96017: Fix some compiler warnings (GH-96018) (#96106)

    - only define recreate_gil with ifdef HAVE_FORK.
    (cherry picked from commit d9c1b74)
    
    Co-authored-by: Christian Heimes <christian@python.org>
    tiran committed Oct 5, 2022
  2. [3.11] GH-97779: Ensure that *all* frame objects are backed by "compl…

    …ete" frames (GH-97886)
    
    (cherry picked from commit 0ff8fd6)
    
    Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
    miss-islington and brandtbucher committed Oct 5, 2022

Commits on Oct 4, 2022

  1. [3.11] GH-97752: Clear the previous member of newly-created generator…

    …/coroutine frames (GH-97812)
    
    (cherry picked from commit 93fcc1f)
    miss-islington committed Oct 4, 2022

Commits on Oct 3, 2022

  1. [3.11] Fix typos in bltinmodule.c. (GH-97789)

    (cherry picked from commit 873a2f2)
    
    Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
    benjaminp and sobolevn committed Oct 3, 2022

Commits on Sep 26, 2022

  1. gh-96848: Fix -X int_max_str_digits option parsing (GH-96988)

    Fix command line parsing: reject "-X int_max_str_digits" option with
    no value (invalid) when the PYTHONINTMAXSTRDIGITS environment
    variable is set to a valid limit.
    (cherry picked from commit 4135166)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    miss-islington and vstinner committed Sep 26, 2022

Commits on Sep 22, 2022

  1. GH-96975: Skip incomplete frames in PyEval_GetFrame (GH-97018)

    (cherry picked from commit 8fd2c3b)
    
    Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
    miss-islington and brandtbucher committed Sep 22, 2022

Commits on Sep 20, 2022

  1. [3.11] GH-95921: Fix positions for some chained comparisons (GH-96968) (

    GH-96973)
    
    (cherry picked from commit dfc73b5)
    
    Automerge-Triggered-By: GH:brandtbucher
    brandtbucher committed Sep 20, 2022
  2. GH-96864: Check for error between line and opcode events (GH-96880)

    (cherry picked from commit c10e33a)
    
    Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
    miss-islington and brandtbucher committed Sep 20, 2022
  3. gh-96387: take_gil() resets drop request before exit (#96869) (#96941)

    At Python exit, sometimes a thread holding the GIL can wait forever
    for a thread (usually a daemon thread) which requested to drop the
    GIL, whereas the thread already exited. To fix the race condition,
    the thread which requested the GIL drop now resets its request before
    exiting.
    
    take_gil() now calls RESET_GIL_DROP_REQUEST() before
    PyThread_exit_thread() if it called SET_GIL_DROP_REQUEST to fix a
    race condition with drop_gil().
    
    Issue discovered and analyzed by Mingliang ZHAO.
    
    (cherry picked from commit 04f4977)
    vstinner committed Sep 20, 2022

Commits on Sep 13, 2022

  1. GH-96754: Check whether the interpreter frame is complete before crea…

    …ting frame object. (GH-96776) (#96787)
    
    (cherry picked from commit 12c5f32)
    
    Co-authored-by: Mark Shannon <mark@hotpy.org>
    
    Co-authored-by: Mark Shannon <mark@hotpy.org>
    miss-islington and markshannon committed Sep 13, 2022
  2. [3.11] gh-95853: Add script to automate WASM build (GH-95828, GH-95985,

    GH-96045, GH-96389, GH-96744) (GH-96749)
    
    Automate WASM build with a new Python script. The script provides
    several build profiles with configure flags for Emscripten flavors
    and WASI. The script can detect and use Emscripten SDK and WASI SDK from
    default locations or env vars.
    
    ``configure`` now detects Node arguments and creates HOSTRUNNER
    arguments for Node 16. It also sets correct arguments for
    ``wasm64-emscripten``.
    tiran committed Sep 13, 2022

Commits on Sep 10, 2022

  1. GH-96678: Fix undefined behavior in ceval.c (GH-96708)

    (cherry picked from commit 50a70a0)
    
    Co-authored-by: Mark Shannon <mark@hotpy.org>
    miss-islington and markshannon committed Sep 10, 2022
  2. Fix possible NULL pointer dereference in _PyThread_CurrentFrames (GH-…

    …96584)
    
    (cherry picked from commit 88a7f66)
    
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    miss-islington and kumaraditya303 committed Sep 10, 2022

Commits on Sep 9, 2022

  1. [3.11] GH-96636: Remove all uses of NOTRACE_DISPATCH (GH-96643) (#96688)

    Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
    (cherry picked from commit aa3b4cf)
    markshannon committed Sep 9, 2022

Commits on Sep 8, 2022

  1. [3.11] GH-96569: Avoid undefined behavior (#96616)

    Co-authored-by: Michael Droettboom <mdboom@gmail.com>
    markshannon and mdboom committed Sep 8, 2022

Commits on Sep 6, 2022

  1. GH-96572: fix use after free in trace refs build mode (GH-96618)

    (cherry picked from commit 6744490)
    
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    miss-islington and kumaraditya303 committed Sep 6, 2022

Commits on Sep 2, 2022

  1. [3.11] gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96500

    )
    
    Integer to and from text conversions via CPython's bignum `int` type is not safe against denial of service attacks due to malicious input. Very large input strings with hundred thousands of digits can consume several CPU seconds.
    
    This PR comes fresh from a pile of work done in our private PSRT security response team repo.
    
    This backports #96499 aka 511ca94
    
    Signed-off-by: Christian Heimes [Red Hat] <christian@python.org>
    Tons-of-polishing-up-by: Gregory P. Smith [Google] <greg@krypto.org>
    Reviews via the private PSRT repo via many others (see the NEWS entry in the PR).
    
    <!-- gh-issue-number: gh-95778 -->
    * Issue: gh-95778
    <!-- /gh-issue-number -->
    
    I wrote up [a one pager for the release managers](https://docs.google.com/document/d/1KjuF_aXlzPUxTK4BMgezGJ2Pn7uevfX7g0_mvgHlL7Y/edit#).
    gpshead committed Sep 2, 2022

Commits on Aug 21, 2022

  1. gh-96125: Fix sys.thread_info.name on pthread platforms (GH-96126) (#…

    …96128)
    
    Automerge-Triggered-By: GH:tiran
    (cherry picked from commit 822955c)
    
    Co-authored-by: Christian Heimes <christian@python.org>
    
    Co-authored-by: Christian Heimes <christian@python.org>
    miss-islington and tiran committed Aug 21, 2022

Commits on Aug 19, 2022

  1. GH-96071: fix deadlock in PyGILState_Ensure (GH-96124) (#96129)

    Alternative of GH-96107
    (cherry picked from commit e0d54a4)
    
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    miss-islington and kumaraditya303 committed Aug 19, 2022

Commits on Aug 12, 2022

  1. GH-95818: Skip incomplete frames in PyThreadState_GetFrame (GH-95886)…

    … (#95890)
    
    (cherry picked from commit 1b46d11)
    
    Co-authored-by: Mark Shannon <mark@hotpy.org>
    
    Co-authored-by: Mark Shannon <mark@hotpy.org>
    miss-islington and markshannon committed Aug 12, 2022

Commits on Aug 1, 2022

  1. [3.11] gh-95174: Add pthread stubs for WASI (GH-95234) (#95503)

    Co-authored-by: Brett Cannon <brett@python.org>.
    (cherry picked from commit 0fe645d)
    
    Co-authored-by: Christian Heimes <christian@python.org>
    tiran committed Aug 1, 2022

Commits on Jul 31, 2022

  1. bpo-45445: Revert "bpo-45445: Fail if an invalid X-option is provided…

    … in the command line (GH-28823)" (GH-94745)
    
    (cherry picked from commit aa37ffd)
    
    Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
    miss-islington and pablogsal committed Jul 31, 2022
  2. [3.11] gh-95174: Handle missing dup() and constants in WASI (GH-95229) (

    GH-95272)
    
    Co-authored-by: Christian Heimes <christian@python.org>
    tiran committed Jul 31, 2022

Commits on Jul 29, 2022

  1. GH-90081: Run python tracers at full speed (GH-95328) (#95363)

    (cherry picked from commit b8b2990)
    
    Co-authored-by: Mark Shannon <mark@hotpy.org>
    
    Co-authored-by: Mark Shannon <mark@hotpy.org>
    miss-islington and markshannon committed Jul 29, 2022

Commits on Jul 28, 2022

  1. [3.11] gh-94938: Fix errror detection of unexpected keyword arguments (

    …GH-94999) (GH-95353)
    
    When keyword argument name is an instance of a str subclass with
    overloaded methods __eq__ and __hash__, the former code could not find
    the name of an extraneous keyword argument to report an error, and
    _PyArg_UnpackKeywords() returned success without setting the
    corresponding cell in the linearized arguments array. But since the number
    of expected initialized cells is determined as the total number of passed
    arguments, this lead to reading NULL as a keyword parameter value, that
    caused SystemError or crash or other undesired behavior.
    (cherry picked from commit ebad53a)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    serhiy-storchaka committed Jul 28, 2022

Commits on Jul 26, 2022

  1. [3.11] gh-95185: Check recursion depth in the AST constructor (GH-95186

    …) (GH-95208)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    (cherry picked from commit 0047447)
    
    Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
    miss-islington and pablogsal committed Jul 26, 2022

Commits on Jul 25, 2022

Commits on Jul 23, 2022

  1. [3.11] GH-94036: Fix more attribute location quirks (GH-95028) (GH-95156

    )
    
    (cherry picked from commit 900bfc5)
    brandtbucher committed Jul 23, 2022

Commits on Jul 22, 2022

Commits on Jul 20, 2022

  1. GH-94851: fix immortal objects refcounting in compiler (gh-95040)

    (cherry picked from commit 7476154)
    
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    miss-islington and kumaraditya303 committed Jul 20, 2022
Older