Commits on Oct 12, 2022
Commits on Oct 7, 2022
-
Add a warning message about PyOS_snprintf (GH-95993)
(cherry picked from commit c7b2204) Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Commits on Oct 5, 2022
Commits on Oct 4, 2022
Commits on Oct 3, 2022
-
[3.11] Fix typos in
bltinmodule.c
. (GH-97789)(cherry picked from commit 873a2f2) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Commits on Sep 26, 2022
-
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>
Commits on Sep 22, 2022
-
GH-96975: Skip incomplete frames in PyEval_GetFrame (GH-97018)
(cherry picked from commit 8fd2c3b) Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
-
Commits on Sep 20, 2022
-
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>
-
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)
Commits on Sep 13, 2022
-
GH-96754: Check whether the interpreter frame is complete before crea…
-
[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``.
Commits on Sep 10, 2022
-
GH-96678: Fix undefined behavior in ceval.c (GH-96708)
(cherry picked from commit 50a70a0) Co-authored-by: Mark Shannon <mark@hotpy.org>
-
Fix possible NULL pointer dereference in _PyThread_CurrentFrames (GH-…
Commits on Sep 9, 2022
Commits on Sep 8, 2022
-
[3.11] GH-96569: Avoid undefined behavior (#96616)
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Commits on Sep 6, 2022
-
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>
Commits on Sep 2, 2022
-
[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#).
Commits on Aug 21, 2022
Commits on Aug 19, 2022
Commits on Aug 12, 2022
Commits on Jul 31, 2022
Commits on Jul 29, 2022
Commits on Jul 28, 2022
-
[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>
Commits on Jul 26, 2022
Commits on Jul 25, 2022
Commits on Jul 23, 2022
Commits on Jul 22, 2022
Commits on Jul 20, 2022
-
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>