summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorLines
23 hoursRelease tarball Python-3.11.13.tgz (dist-generated files / local differences ↵HEADlocal/pythonmasterbeatrice-111731/+38775
from tag)
2025-06-03Python 3.11.13v3.11.13Pablo Galindo-25/+80
2025-06-03[3.11] gh-135034: Normalize link targets in tarfile, add ↵T. Wouters-138/+1017
`os.path.realpath(strict='allow_missing')` (GH-135037) (GH-135068) Addresses CVEs 2024-12718, 2025-4138, 2025-4330, and 2025-4517. (cherry picked from commit 3612d8f51741b11f36f8fb0494d79086bac9390a) (cherry picked from commit c358142cab7ce621a2745262a90df967b357f61c) Co-authored-by: Łukasz Langa <lukasz@langa.pl> Signed-off-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Seth Michael Larson <seth@python.org> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-06-03[3.11] gh-128840: Fix parsing long IPv6 addresses with embedded IPv4 address ↵Miss Islington (bot)-6/+24
(GH-134836) (GH-135091) (cherry picked from commit d83576bf48d07d5e29d5d171c4e25afb048622aa) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-06-03[3.11] gh-123409: fix `IPv6Address.reverse_pointer` for IPv4-mapped ↵Miss Islington (bot)-12/+53
addresses (GH-123419) (GH-135087) Fix functionality that was broken with better textual representation for IPv4-mapped addresses (gh-87799) (cherry picked from commit 77a2fb4bf1a1b160d6ce105508288fc77f636943) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-06-03[3.11] gh-128840: Limit the number of parts in IPv6 address parsing ↵Miss Islington (bot)-2/+22
(GH-128841) (GH-134613) Limit length of IP address string to 39 (cherry picked from commit 47f1161d3a2bec52b5b5e952150141709c247da2) Co-authored-by: Seth Michael Larson <seth@python.org> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
2025-06-03[3.11] gh-87799: Improve the textual representation of IPv4-mapped IPv6 ↵Miss Islington (bot)-1/+45
addresses (GH-29345) (GH-135080) Represent IPv4-mapped IPv6 address as x:x:x:x:x:x:d.d.d.d, where the 'x's are the hexadecimal values of the six high-order 16-bit pieces of the address, and the 'd's are the decimal values of the four low-order 8-bit pieces of the address (standard IPv4 representation). (cherry picked from commit f22bf8e3cf899896cf587099d29290cb43aa9724) Co-authored-by: opavliuk <40970635+opavlyuk@users.noreply.github.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2025-06-02[3.11] gh-134062: Fix hash collisions in IPv4Network and IPv6Network ↵Miss Islington (bot)-1/+32
(GH-134063) (GH-134479) (cherry picked from commit f3fc0c16e08b317cb201cf1073e934e6909f1251) Co-authored-by: Mike Salvatore <mike.s.salvatore@gmail.com>
2025-06-02[3.11] gh-133767: Fix use-after-free in the unicode-escape decoder with an ↵Serhiy Storchaka-56/+196
error handler (GH-129648) (GH-133944) (GH-134341) If the error handler is used, a new bytes object is created to set as the object attribute of UnicodeDecodeError, and that bytes object then replaces the original data. A pointer to the decoded data will became invalid after destroying that temporary bytes object. So we need other way to return the first invalid escape from _PyUnicode_DecodeUnicodeEscapeInternal(). _PyBytes_DecodeEscape() does not have such issue, because it does not use the error handlers registry, but it should be changed for compatibility with _PyUnicode_DecodeUnicodeEscapeInternal(). (cherry picked from commit 9f69a58623bd01349a18ba0c7a9cb1dad6a51e8e) (cherry picked from commit 6279eb8c076d89d3739a6edb393e43c7929b429d) (cherry picked from commit a75953b347716fff694aa59a7c7c2489fa50d1f5) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-05-14[3.11] gh-126500: test_ssl: Don't stop ThreadedEchoServer on OSError in ↵Miss Islington (bot)-5/+12
ConnectionHandler; rely on __exit__ (GH-126503) (GH-126572) (GH-133148) gh-126500: test_ssl: Don't stop ThreadedEchoServer on OSError in ConnectionHandler; rely on __exit__ (GH-126503) If `read()` in the ConnectionHandler thread raises `OSError` (except `ConnectionError`), the ConnectionHandler shuts down the entire ThreadedEchoServer, preventing further connections. It also does that for `EPROTOTYPE` in `wrap_conn`. As far as I can see, this is done to avoid the server thread getting stuck, forgotten, in its accept loop. However, since 2011 (5b95eb90a7167285b6544b50865227c584943c9a) the server is used as a context manager, and its `__exit__` does `stop()` and `join()`. (I'm not sure if we *always* used `with` since that commit, but currently we do.) Make sure that the context manager *is* used, and remove the `server.stop()` calls from ConnectionHandler. (cherry picked from commit c9cda1608edf7664c10f4f467e24591062c2fe62) (cherry picked from commit aee80cd5e7c6be90c69b9aa9c09faa19b91cdccd) Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-04-08Post 3.11.12Pablo Galindo-1/+1
2025-04-08Python 3.11.12v3.11.12Pablo Galindo-36/+109
2025-04-08[3.11] gh-131809: Upgrade vendored expat to 2.7.1 (GH-132192) (#132240)Seth Michael Larson-10/+20
(cherry picked from commit c0de6500249469e6fc5b458d6afb6bad1b6755cd) Co-authored-by: Gregory P. Smith <greg@krypto.org>
2025-04-03[3.11] gh-131261: Update libexpat to 2.7.0 (CVE-2024-8176) (GH-131272) ↵Seth Michael Larson-159/+424
(GH-131362) (cherry picked from commit bb0268f60dfe903a9bdb8d84104247a9318c6b18) (cherry picked from commit 6af54d298d5135302037cdda7a1f5535e48cb1b6) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
2025-04-03[3.11] gh-121284: Fix email address header folding with parsed encoded-word ↵Miss Islington (bot)-5/+37
(GH-122754) (GH-131405) Email generators using email.policy.default may convert an RFC 2047 encoded-word to unencoded form during header refolding. In a structured header, this could allow 'specials' chars outside a quoted-string, leading to invalid address headers and enabling spoofing. This change ensures a parsed encoded-word that contains specials is kept as an encoded-word while the header is refolded. [Better fix from @bitdancer.] (cherry picked from commit 295b53df2aa18deb625a7da41f7e4babfe6ef34b) Co-authored-by: Mike Edmunds <medmunds@gmail.com> Co-authored-by: R David Murray <rdmurray@bitdance.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-04-03[3.11] gh-127257: ssl: Raise OSError for ERR_LIB_SYS (GH-127361) (GH-127905) ↵Victor Stinner-0/+12
(GH-131970) gh-127257: ssl: Raise OSError for ERR_LIB_SYS (GH-127361) From the ERR_raise manpage: ERR_LIB_SYS This "library code" indicates that a system error is being reported. In this case, the reason code given to `ERR_raise()` and `ERR_raise_data()` *must* be `errno(3)`. This PR only handles ERR_LIB_SYS for the high-lever error types SSL_ERROR_SYSCALL and SSL_ERROR_SSL, i.e., not the ones where OpenSSL indicates it has some more information about the issue. (cherry picked from commit f4b31edf2d9d72878dab1f66a36913b5bcc848ec) (cherry picked from commit 7f707fa6c67d0bfa9bbc1a9f344b932789659397) Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-03-14[3.11] gh-106883: Make test_current_frames_exceptions_deadlock faster (#131182)Diego Russo-8/+4
2025-03-11[3.11] gh-106883 Fix deadlock in threaded application (#117332)Diego Russo-0/+93
When using threaded applications, there is a high risk of a deadlock in the interpreter. It's a lock ordering deadlock with HEAD_LOCK(&_PyRuntime); and the GIL. By disabling the GC during the _PyThread_CurrentFrames() and _PyThread_CurrentExceptions() calls fixes the issue.
2025-02-27[3.11] GH-130396: Treat clang -Og as optimized for gdb tests (GH-130550) ↵Miss Islington (bot)-1/+5
(GH-130573) (#130593)
2025-02-19[3.11] gh-119511: Fix a potential denial of service in imaplib (GH-119514) ↵Miss Islington (bot)-1/+31
(#129357) The IMAP4 client could consume an arbitrary amount of memory when trying to connect to a malicious server, because it read a "literal" data with a single read(size) call, and BufferedReader.read() allocates the bytes object of the specified size before reading. Now the IMAP4 client reads data by chunks, therefore the amount of used memory is limited by the amount of the data actually been sent by the server. (cherry picked from commit 735f25c5e3a0f74438c86468ec4dfbe219d93c91) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
2025-02-19[3.11] gh-105704: Disallow square brackets (`[` and `]`) in domain names for ↵Miss Islington (bot)-3/+58
parsed URLs (GH-129418) (#129528) Co-authored-by: Seth Michael Larson <seth@python.org> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-02-19[3.11] gh-80222: Fix email address header folding with long quoted-string ↵Miss Islington (bot)-3/+53
(GH-122753) (#129009) Email generators using email.policy.default could incorrectly omit the quote ('"') characters from a quoted-string during header refolding, leading to invalid address headers and enabling header spoofing. This change restores the quote characters on a bare-quoted-string as the header is refolded, and escapes backslash and quote chars in the string. (cherry picked from commit 5aaf41685834901e4ed0a40f4c055b92991a0bb5) Co-authored-by: Mike Edmunds <medmunds@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-02-19[3.11] gh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (GH-119322) (#130276)Miss Islington (bot)-9/+22
Co-authored-by: James De Bias <81095953+DBJim@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-02-18[3.11] gh-122544: Change OS image in GitHub Actions to Ubuntu 24.04 ↵Hugo van Kemenade-11750/+17799
(#122566) (#130260)
2025-02-18[3.11] CI: Use ImageOS (ubuntu24) instead of runner.os (Linux) in cache keys ↵Hugo van Kemenade-37/+32
(GH-130200) (#130252)
2025-02-13[3.11] Docs: pin python-docs-theme to 2025.2 (#129576)Adam Turner-0/+0
* [3.11] Pin python-docs-theme * Use today's release Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --------- Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-02-13[3.11] gh-119461: Restore the testSocket VSOCK skipUnless removed by PR ↵Miss Islington (bot)-0/+2
GH-119465 (GH-129561) (#129566) gh-119461: Restore the testSocket VSOCK skipUnless removed by PR GH-119465 (GH-129561) Restore the skipUnless removed by GH-119465. This test can only pass on virtual machines, not actual machines. actual machines see: ``` self.cli.connect((cid, VSOCKPORT)) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ OSError: [Errno 19] No such device ``` Reproduced on (Linux) Ubuntu 24.04.1 running 6.8.0-52-generic. (cherry picked from commit e1006ce1ded1b18972888ef057718dba6f2c7edd) Co-authored-by: Gregory P. Smith <greg@krypto.org>
2025-02-13[3.11] Docs: pin python-docs-theme to 2025.2 (#129576)Adam Turner-1/+1
2025-01-23[3.11] gh-119461: Fix ThreadedVSOCKSocketStreamTest (#129171)Victor Stinner-5/+10
Fix ThreadedVSOCKSocketStreamTest: if get_cid() returns the host address or the "any" address, use the local communication address (loopback): VMADDR_CID_LOCAL. On Linux 6.9, apparently, the /dev/vsock device is now available but get_cid() returns VMADDR_CID_ANY (-1). (cherry picked from commit e94dbe4ed83460f18bd72563c5f09f6cdc71f604) (cherry picked from commit c750061047ee520d8299334df4b112fd983d7e48) (cherry picked from commit cbfe3023e46b544b80ea1a38a8c900c6fb881554)
2025-01-22[3.11] gh-128069: brew link --overwrite tcl-tk@8 to prevent conflict with ↵Miss Islington (bot)-1/+1
GitHub image's version (GH-128090) (#129172)
2025-01-21[3.11] gh-128874: Fix the documentation for blurb 2.0 (GH-128875) (#128879)Miss Islington (bot)-3/+3
gh-128874: Fix the documentation for blurb 2.0 (GH-128875) (cherry picked from commit 40a4d88a14c741172a158683c39d232c587c6f11) Co-authored-by: Victor Stinner <vstinner@python.org>
2024-12-11[3.11] gh-121277: Allow .. versionadded:: next in docs (GH-121278) (#124718) ↵Petr Viktorin-5/+33
(#127827) * [3.11] gh-121277: Allow `.. versionadded:: next` in docs (GH-121278) (#124718) Make `versionchanged:: next`` expand to current (unreleased) version. When a new CPython release is cut, the release manager will replace all such occurences of "next" with the just-released version. (See the issue for release-tools and devguide PRs.) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> (cherry picked from commit 7d24ea9db3e8fdca52058629c9ba577aba3d8e5c) gh-121277: Raise nice error on `next` as second argument to deprecated-removed (GH-124623) (cherry-picked from e349f73a5ad2856b0a7cbe4aef7cc081c7aed777) * Import VersionChange sphinx.domains.changeset.VersionChange exists at least since Sphinx 2.1, according to: https://www.sphinx-doc.org/en/master/extdev/deprecated.html * Get config from env * Use version, not arguments directly
2024-12-03Post 3.11.11Pablo Galindo-1/+1
2024-12-03Python 3.11.11v3.11.11Pablo Galindo-14/+53
2024-12-03[3.11] gh-122792: Make IPv4-mapped IPv6 address properties consistent with ↵Miss Islington (bot)-5/+49
IPv4 (GH-122793) (GH-123818) Make IPv4-mapped IPv6 address properties consistent with IPv4. (cherry picked from commit 76a1c5d18312712baed4699fe7333abb050ec9b7) Co-authored-by: Seth Michael Larson <seth@python.org> --------- Co-authored-by: Seth Michael Larson <seth@python.org> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2024-12-03[3.11] gh-126623: Update libexpat to 2.6.4, make future updates easier ↵Seth Michael Larson-11/+80
(GH-126792) (GH-126798) Update libexpat to 2.6.4, make future updates easier. (cherry picked from commit 3c9996909402fadc98e6ca2a64e75a71a7427352)
2024-11-30[3.11] gh-127359: Pin Tcl/Tk to 8 (8.6) for testing macOS (GH-127365) (#127407)Hugo van Kemenade-1/+4
2024-11-08[3.11] gh-111942: Remove an extra incref in textiowrapper_change_encoding ↵Petr Viktorin-1/+0
(#126542)
2024-11-06[3.11] gh-87846: test_io: Ignore OpenWrapper in test___all__ (#126478)Petr Viktorin-1/+5
2024-11-01[3.11] gh-124651: Quote template strings in `venv` activation scripts ↵Victor Stinner-21/+135
(GH-124712) (GH-126185) (#126269)
2024-10-22[3.11] gh-123418: Update CI to use fresh OpenSSL releases (GH-123675) (#123699)Zachary Ware-6/+10
* [3.11] gh-123418: Update CI to use fresh OpenSSL releases (GH-123675) Also adds openssl/openssl GitHub URL template for newer OpenSSL downloads (cherry picked from commit 56b00f4705634af2861a8aa9c2eb5769012220f0) Co-authored-by: Zachary Ware <zach@python.org> * Adjust build_ubuntu_ssltests job to use cache for the correct OS version
2024-10-22[3.11] Adjust build_ubuntu_ssltests job to use cache for the correct OS ↵Zachary Ware-5/+10
version (#124484)
2024-10-22[3.11] gh-125041: test_zlib: For s390x HW acceleration, only skip checking ↵Petr Viktorin-10/+18
the compressed bytes (GH-125042) (#125577) gh-125041: test_zlib: For s390x HW acceleration, only skip checking the compressed bytes (#125042) (cherry picked from commit cc5a225cdc2a5d4e035dd08d59cef39182c10a6c)
2024-09-07Post 3.11.10Pablo Galindo-1/+1
2024-09-07Python 3.11.10v3.11.10Pablo Galindo-65/+219
2024-09-06[3.11] gh-102988: Adjust version numbers in versionadded directives (#123772)Petr Viktorin-2/+2
2024-09-06[3.11] [CVE-2023-27043] gh-102988: Reject malformed addresses in ↵Petr Viktorin-21/+371
email.parseaddr() (GH-111116) (#123767) Detect email address parsing errors and return empty tuple to indicate the parsing error (old API). Add an optional 'strict' parameter to getaddresses() and parseaddr() functions. Patch by Thomas Dwyer. (cherry picked from commit 4a153a1d3b18803a684cd1bcc2cdf3ede3dbae19) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Thomas Dwyer <github@tomd.tel>
2024-09-05[3.11] gh-123418: Update OpenSSL to 3.0.15 on Windows (GH-123673) (#123692)Zachary Ware-4/+5
(cherry picked from commit d2eafe2f48aac31aa8a152620bdfd0f2a274ee1d)
2024-09-05[3.11] gh-123678: Upgrade libexpat 2.6.3 (#123709)Seth Michael Larson-15/+36
(cherry picked from commit e6fe0ac014e8f5b17064c20d1ae937dbd4c761a2)
2024-09-04[3.11]GH-112275: Fix HEAD_LOCK deadlock in child process after fork (#112336)ChuBoning-5/+8
HEAD_LOCK is called from _PyEval_ReInitThreads->_PyThreadState_DeleteExcept before _PyRuntimeState_ReInitThreads reinit runtime->interpreters.mutex which might be locked before fork. Co-authored-by: Łukasz Langa <lukasz@langa.pl>