Erlend Egeberg Aasland
3ea2a8f425
[3.9] bpo-43853: Expand test suite for SQLite UDF's (GH-27642) (GH-31030) (GH-31586)
...
(cherry picked from commit 3eb3b4f270
)
2022-03-01 20:46:16 -08:00
Miss Islington (bot)
87cebb1e69
bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487)
...
(cherry picked from commit 1935e1cc28
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
2022-02-22 18:50:57 -08:00
Miss Islington (bot)
9aca412db8
bpo-46784: Add newly exported expat symbols to the namespace. (GH-31397)
...
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 6312c1052c
)
Co-authored-by: Yilei "Dolee" Yang <yileiyang@google.com>
2022-02-18 15:13:16 -08:00
Miss Islington (bot)
e7828904f3
bpo-46400: Update libexpat from 2.4.1 to 2.4.4 (GH-31022) (GH-31295)
2022-02-18 06:58:26 +09:00
DongGeon Lee
ad47db34be
[3.9] bpo-46728: fix docstring of combinations_with_replacement for consistency (GH-31293). (GH-31356)
2022-02-15 21:22:01 +09:00
Jacob Walls
cc6d8f8828
[3.9] bpo-45948: Remove constructor discrepancy in C version of ElementTree.XMLParser (GH-31152) (GH-31299)
...
Both implementations accept target=None now.
(cherry picked from commit 168fd6453b
)
2022-02-13 02:16:31 +02:00
Miss Islington (bot)
0892a0e3ec
bpo-40479: Fix undefined behavior in Modules/_hashopenssl.c (GH-31153)
...
va_end() must be called before returning.
(cherry picked from commit 59e004af63
)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2022-02-07 00:08:10 -08:00
Christian Heimes
04772cd6f1
[3.9] bpo-46513: Remove AC_C_CHAR_UNSIGNED / __CHAR_UNSIGNED__ (GH-30851) (GH-30915)
...
Co-authored-by: Christian Heimes <christian@python.org>
2022-01-26 12:20:39 +01:00
Kumar Aditya
6ed874f8c5
[3.9] bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777) (GH-30785)
...
Automerge-Triggered-By: GH:asvetlov
2022-01-22 04:52:24 -08:00
Kumar Aditya
3e7d06a1fa
[3.9] bpo-46383: Fix signature of zoneinfo module_free function (GH-3… (GH-30611)
...
…0607)
2022-01-22 03:05:55 -08:00
Tal Einat
656971e495
[3.9] bpo-41857: mention timeout argument units in select.poll() and select.depoll() doc-strings (GH-22406)
...
(cherry picked from commit 27df7566bc
)
Co-authored-by: Zane Bitter <zbitter@redhat.com>
2022-01-21 11:37:39 +02:00
Miss Islington (bot)
ae6e255cb3
bpo-46280: Fix tracemalloc_copy_domain() (GH-30591)
...
Test if tracemalloc_copy_traces() failed to allocated memory in
tracemalloc_copy_domain().
(cherry picked from commit 7c770d3350
)
Co-authored-by: Victor Stinner <vstinner@python.org>
2022-01-13 20:35:21 -08:00
Miss Islington (bot)
537f16adfa
bpo-40479: Fix typo, flag must be set for OpenSSL < 3.0.0 (GH-30584)
...
(cherry picked from commit 276c234ce0
)
Co-authored-by: Christian Heimes <christian@python.org>
2022-01-13 13:19:50 -08:00
Victor Stinner
52937c26ad
bpo-46070: _PyGC_Fini() untracks objects (GH-30577) (GH-30580)
...
Py_EndInterpreter() now explicitly untracks all objects currently
tracked by the GC. Previously, if an object was used later by another
interpreter, calling PyObject_GC_UnTrack() on the object crashed if
the previous or the next object of the PyGC_Head structure became a
dangling pointer.
(cherry picked from commit 1a4d1c1c9b
)
2022-01-13 20:12:50 +01:00
Christian Heimes
4ddd5da269
[3.9] bpo-40479: Fix hashlib's usedforsecurity for OpenSSL 3.0.0 (GH-30455) (GH-30574)
...
Co-authored-by: Christian Heimes <christian@python.org>
2022-01-13 11:20:45 +01:00
Miss Islington (bot)
4d2cfd3549
bpo-46070: Fix asyncio initialisation guard (GH-30423)
...
If init flag is set, exit successfully immediately.
If not, only set the flag after successful initialization.
(cherry picked from commit b127e70a8a
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2022-01-07 06:36:07 -08:00
Miss Islington (bot)
5f622f1d5c
bpo-45822: Minor cleanups to the test_Py_CompileString test (GH-29750) (GH-29759)
...
(cherry picked from commit abfc794bbf
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-12-11 01:03:15 +01:00
Miss Islington (bot)
040f9f9c48
bpo-46000: Improve NetBSD curses compatibility (GH-29947) (GH-30023)
...
(cherry picked from commit 2fb797e93c
)
Co-authored-by: Thomas Klausner <tk@giga.or.at>
2021-12-10 13:21:19 +02:00
Miss Islington (bot)
5ae4265b8c
bpo-46018: Ensure that math.expm1 does not raise on underflow (GH-29997)
...
(cherry picked from commit 3363e1cb05
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2021-12-09 10:55:53 -08:00
Miss Islington (bot)
52a9a71fe6
bpo-27946: Fix possible crash in ElementTree.Element (GH-29915)
...
Getting an attribute via attrib.get() simultaneously with replacing
the attrib dict can lead to access to deallocated dict.
(cherry picked from commit d15cdb2f32
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-12-05 11:04:59 -08:00
Ma Lin
86c1265cdc
[3.9] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29588)
...
* Fix thread lock in zlib.Decompress.flush() may go wrong
Getting `.unconsumed_tail` before acquiring the thread lock may mix up decompress state.
backport of https://github.com/python/cpython/pull/29587 to 3.9/3.8.
2021-11-26 16:21:22 -08:00
Christian Heimes
71b414750e
[3.9] bpo-41498: Fix build on platforms without sigset_t (GH-29770) (GH-29774)
...
Co-authored-by: Christian Heimes <christian@python.org>
2021-11-25 13:02:54 +01:00
Pablo Galindo Salgado
0ef308a289
bpo-45822: Respect PEP 263's coding cookies in the parser even if flags are not provided (GH-29582) (GH-29585)
...
(cherry picked from commit da20d7401d
)
2021-11-18 00:18:16 +01:00
Miss Islington (bot)
6b0ea06ea8
remove the repeat 'the' (GH-29455)
...
(cherry picked from commit 122ca4d73f
)
Co-authored-by: 180909 <734461790@qq.com>
2021-11-08 00:45:06 -08:00
Łukasz Langa
ed807bf333
[3.9] bpo-45581: Raise MemoryError
in sqlite3.connect
if SQLite signals memory error (GH-29171) (GH-29324)
...
(cherry picked from commit e2e62b3808
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-10-29 23:02:19 +02:00
Miss Islington (bot)
269bf56e3d
bpo-45571: use PY_CFLAGS_NODIST for shared Modules/Setup (GH-29161)
...
(cherry picked from commit f6e8b80d20
)
Co-authored-by: Christian Heimes <christian@python.org>
2021-10-22 11:29:52 -07:00
Miss Islington (bot)
1249ce7c6c
bpo-45532: Replace 'default' with 'main' as default in sys.version (GH-29100)
...
(cherry picked from commit d2cd5eef0c
)
Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
2021-10-20 10:45:06 -07:00
Serhiy Storchaka
6848602806
bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec (GH-28944) (GH-28953)
...
They support now splitting escape sequences between input chunks.
Add the third parameter "final" in codecs.raw_unicode_escape_decode().
It is True by default to match the former behavior.
(cherry picked from commit 39aa98346d
)
2021-10-14 21:23:52 +03:00
Serhiy Storchaka
7c722e32bf
[3.9] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec (GH-28939) (GH-28945)
...
They support now splitting escape sequences between input chunks.
Add the third parameter "final" in codecs.unicode_escape_decode().
It is True by default to match the former behavior.
(cherry picked from commit c96d1546b1
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-10-14 20:03:29 +03:00
Miss Islington (bot)
38fadbc5b9
no-issue: Make silence about warning '_POSIX_C_SOURCE redefined' (GH-28948)
...
(cherry picked from commit d413c50363
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
2021-10-14 09:36:19 -07:00
Dong-hee Na
e4fcb6fd3d
[3.9] bpo-20028: Keep original exception when PyUnicode_GetLength return -1 (GH-28832) (GH-28835)
2021-10-10 01:13:44 +09:00
Miss Islington (bot)
6f3bc5eee6
bpo-20028: Improve error message of csv.Dialect when initializing (GH-28705)
...
(cherry picked from commit 34bbc87b2d
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
2021-10-09 08:30:54 -07:00
Miss Islington (bot)
87f0156a22
bpo-45262, asyncio: Fix cache of the running loop holder (GH-28796)
...
Prevent use-after-free of running loop holder via cache.
(cherry picked from commit 392a898353
)
Co-authored-by: Matthias Reichl <github@hias.horus.com>
2021-10-07 16:14:04 -07:00
Christian Clauss
8f762349a2
[3.9] Fix typos in the Modules directory (GH-28761). (GH-28791)
...
(cherry picked from commit dd02a696e5
)
Co-authored-by: Christian Clauss <cclauss@me.com>
Automerge-Triggered-By: GH:JulienPalard
2021-10-07 06:17:05 -07:00
Łukasz Langa
52d9d3b754
[3.9] bpo-44050: Extension modules can share state when they don't support sub-interpreters. (GH-27794) (GH-28741)
...
(cherry picked from commit b9bb74871b
)
Co-authored-by: Hai Shi <shihai1992@gmail.com>
2021-10-05 22:30:25 +02:00
Serhiy Storchaka
e9ce081ec7
[3.9] Remove trailing spaces (GH-28710)
2021-10-03 20:04:38 +03:00
Miss Islington (bot)
6035d650a3
bpo-44687: Ensure BufferedReader objects with unread buffers can peek even when the underlying file is closed (GH-28457)
...
Co-authored-by: AngstyDuck <solsticedante@gmail.com>
2021-10-01 21:46:25 +01:00
Miss Islington (bot)
8822526caa
[3.9] hashlib: Fix old message about unicode objects. (GH-28653) (GH-28679)
...
(cherry picked from commit 9ce0f48e91
)
Co-authored-by: Julien Palard <julien@palard.fr>
2021-10-01 06:28:19 -07:00
Miss Islington (bot)
9626ac8b74
closes bpo-44751: Move crypt.h include from public header to _cryptmodule (GH-27394)
...
Automerge-Triggered-By: GH:benjaminp
(cherry picked from commit 196998e220
)
Co-authored-by: Geoffrey Thomas <geofft@ldpreload.com>
2021-09-29 13:47:58 -07:00
Miss Islington (bot)
cd00fee8dd
bpo-35606: Fix math.prod tests using 'start' as keyword parameter (GH-28595) (GH-28604)
...
(cherry picked from commit 84975146a7
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-09-28 22:19:02 +02:00
Łukasz Langa
5482db5800
[3.9] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28512)
...
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>.
(cherry picked from commit 8f943ca257
)
Co-authored-by: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com>
2021-09-22 17:32:04 +02:00
Miss Islington (bot)
98fef200bb
bpo-45228: Fix stack buffer overflow in parsing J1939 address (GH-28404)
...
(cherry picked from commit 773319545b
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-09-17 02:10:55 -07:00
Miss Islington (bot)
5d28bb699a
[3.10] bpo-45126: Fix ref. leak in sqlite3.Connection.__init__
(GH-28231). (GH-28298)
...
(cherry picked from commit aa6dd54d43
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-09-12 21:07:32 -07:00
Miss Islington (bot)
5c65834d80
bpo-44219: Release the GIL during isatty syscalls (GH-28250)
...
Release the GIL while performing isatty() system calls on arbitrary
file descriptors. In particular, this affects os.isatty(),
os.device_encoding() and io.TextIOWrapper. By extension,
io.open() in text mode is also affected.
(cherry picked from commit 06148b1870
)
Co-authored-by: Vincent Michel <vxgmichel@gmail.com>
2021-09-09 06:40:42 -07:00
Miss Islington (bot)
d9b7d427eb
Remove documentation for non-existing socket class attributes (GH-28029) (GH-28221)
...
The functions in question are available on the module-level only.
(cherry picked from commit 34d82ce7cb
)
Co-authored-by: Matti Picus <matti.picus@gmail.com>
2021-09-07 20:45:57 +02:00
Serhiy Storchaka
e09dd8aafd
[3.9] bpo-45060: Get rid of few uses of the equality operators with None (GH-28087). (GH-28093)
...
(cherry picked from commit 3c65457156
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-09-01 09:51:01 +03:00
Miss Islington (bot)
4b55837e7c
bpo-44689: ctypes.util.find_library() now finds macOS 11+ system libraries when built on older macOS systems (GH-27251) (GH-28053)
...
Previously, when built on older macOS systems, `find_library` was not able to find macOS system libraries when running on Big Sur due to changes in how system libraries are stored.
(cherry picked from commit 71853a7302
)
Co-authored-by: Tobias Bergkvist <tobias@bergkv.ist>
2021-08-30 11:08:16 +02:00
Miss Islington (bot)
007221a43e
bpo-44394: Update libexpat copy to 2.4.1 (GH-26945) (GH-28032)
...
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: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 3fc5d84046
)
Co-authored-by: Victor Stinner <vstinner@python.org>
2021-08-29 16:36:36 +02:00
Miss Islington (bot)
2351ff2c8f
Fix typo in a comment in Modules/_ssl.c: s/validata/validate/ (GH-27993) (GH-27998)
...
(cherry picked from commit 28db1f61f2
)
Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
2021-08-27 13:59:23 +02:00
Erlend Egeberg Aasland
52702e8ba0
[3.9] bpo-27334: roll back transaction if sqlite3 context manager fails to commit (GH-26202) (GH-27944)
2021-08-25 20:02:25 +01:00