cpython/Modules
Serhiy Storchaka 36153494f1
[3.11] gh-62260: Fix ctypes.Structure subclassing with multiple layers (GH-13374) (GH-113624)
The length field of StgDictObject for Structure class contains now
the total number of items in ffi_type_pointer.elements (excluding
the trailing null).

The old behavior of using the number of elements in the parent class can
cause the array to be truncated when it is copied, especially when there
are multiple layers of subclassing.

(cherry picked from commit 5f3cc90a12)

Co-authored-by: Jeffrey Kintscher <49998481+websurfer5@users.noreply.github.com>
2024-01-01 16:46:07 +00:00
..
_blake2 [3.11] gh-111251: Fix error checking in _blake2 module init (GH-111252) (#111298) 2023-11-10 14:43:51 +00:00
_ctypes [3.11] gh-62260: Fix ctypes.Structure subclassing with multiple layers (GH-13374) (GH-113624) 2024-01-01 16:46:07 +00:00
_decimal [3.11] gh-106263: Fix segfault in signaldict_repr in _decimal module (#… (#107490) 2023-07-31 15:52:23 +02:00
_io [3.11] gh-111942: Fix crashes in TextIOWrapper.reconfigure() (GH-111976) (GH-112059) 2023-11-15 14:20:18 +00:00
_multiprocessing [3.11] gh-107913: Fix possible losses of OSError error codes (GH-107930) (GH-108524) 2023-08-27 12:18:58 +00:00
_sha3 bpo-47098: Replace Keccak Code Package with tiny_sha3 (GH-32060) 2022-03-26 21:36:08 +01:00
_sqlite [3.11] gh-105375: Improve error handling in sqlite3 collation callback (GH-105412) (#105441) 2023-06-07 21:22:01 +00:00
_sre [3.11] gh-109747: Improve errors for unsupported look-behind patterns (GH-109859) (GH-110860) 2023-10-14 06:51:24 +00:00
_ssl gh-91320: Argument Clinic uses _PyCFunction_CAST() (#32210) 2022-05-03 20:25:41 +02:00
_xxtestfuzz [3.11] gh-109098: Fuzz re module instead of internal sre (GH-109911) (GH-109933) 2023-09-27 09:15:40 +03:00
cjkcodecs [3.11] gh-101180: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 co… (gh-111771) 2023-11-06 11:29:59 +00:00
clinic [3.11] GH-111804: Drop posix.fallocate() under WASI (GH-111869) (GH-111920) 2023-11-09 15:36:15 -08:00
expat gh-98739: Update libexpat from 2.4.9 to 2.5.0 (GH-98742) 2022-10-27 14:21:35 -07:00
_abc.c [3.11] gh-95324: Emit a warning if an object doesn't call PyObject_GC_UnTrack during deallocation in debug mode (GH-95325) (#95336) 2022-07-27 16:55:44 +01:00
_asynciomodule.c [3.11] gh-113566: Fix asyncio segfault during interpreter finalization (#113578) 2023-12-29 21:06:32 -08:00
_bisectmodule.c gh-92839: fixed typo in _bisectmodule.c (line 131) (GH-92849) 2022-05-28 11:31:06 -07:00
_bz2module.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
_codecsmodule.c bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec (GH-28944) 2021-10-14 20:04:19 +03:00
_collectionsmodule.c GH-100989: remove annotation from docstring (GH-102991) 2023-03-23 23:04:06 -07:00
_contextvarsmodule.c bpo-1635741: _contextvars uses PyModule_AddType() (GH-23147) 2020-11-04 16:33:55 +01:00
_cryptmodule.c closes bpo-44751: Move crypt.h include from public header to _cryptmodule (GH-27394) 2021-07-27 15:58:12 -07:00
_csv.c [3.11] gh-104265 Disallow instantiation of _csv.Reader and _csv.Writer (GH-104266) (#104278) 2023-05-08 17:34:43 +05:30
_curses_panel.c [3.11] gh-86493: Fix possible leaks in modules initialization: _curses_panel, _decimal, posix, xxsubtype (GH-106767) (GH-106849) (GH-106851) 2023-07-18 12:53:17 +03:00
_cursesmodule.c [3.11] gh-107913: Fix possible losses of OSError error codes (GH-107930) (GH-108524) 2023-08-27 12:18:58 +00:00
_datetimemodule.c [3.11] Fix undefined behaviour in datetime.time.fromisoformat() (GH-111982) (#111991) 2023-11-12 00:24:02 +00:00
_dbmmodule.c gh-89452: Prefer gdbm-compat over ndbm (#92208) 2022-05-03 18:27:38 +02:00
_elementtree.c [3.11] gh-105375: Improve error handling in _elementtree (GH-105591) (#105601) 2023-06-09 21:19:59 +00:00
_functoolsmodule.c gh-96641: Do not expose KeyWrapper in _functoolsmodule.c (gh-96642) 2022-09-07 04:50:00 -07:00
_gdbmmodule.c bpo-46541: Remove usage of _Py_IDENTIFIER from dbms modules (GH-31358) 2022-02-16 18:57:28 +09:00
_hashopenssl.c [3.11] gh-106033: Get rid of new occurrences of PyDict_GetItem and Py… (#106040) 2023-06-24 16:41:02 -07:00
_heapqmodule.c bpo-43974: Move Py_BUILD_CORE_MODULE into module code (GH-29157) 2021-10-22 15:36:28 +02:00
_json.c Use static inline function Py_EnterRecursiveCall() (#91988) 2022-05-04 13:30:23 +02:00
_localemodule.c [3.11] gh-107913: Fix possible losses of OSError error codes (GH-107930) (GH-108524) 2023-08-27 12:18:58 +00:00
_lsprof.c GH-95045: gc untrack _lsprof.Profiler before deallocating it (GH-95315) 2022-07-27 05:37:43 -07:00
_lzmamodule.c bpo-46541: Remove usage of _Py_IDENTIFIER from lzma module (GH-31683) 2022-03-05 01:38:56 +09:00
_math.h bpo-45548: Remove _math.c workarounds for pre-C99 libm (GH-29179) 2021-10-25 01:25:27 -07:00
_opcode.c bpo-46072: Add --with-pystats configure option to simplify gathering of VM stats (GH-30116) 2021-12-15 15:32:32 +00:00
_operator.c DOC: correct bytesarray -> bytearray in comments (GH-92410) (GH-94089) 2022-06-22 10:47:52 +02:00
_pickle.c [3.11] bpo-41422: Visit the Pickler's and Unpickler's memo in tp_traverse (GH-21664) (GH-112465) 2023-11-27 18:46:34 +00:00
_posixsubprocess.c [3.11] gh-104372: Drop the GIL around the vfork() call. (#104782) (#104958) 2023-09-01 08:53:06 +00:00
_queuemodule.c bpo-46613: Add PyType_GetModuleByDef to the public API (GH-31081) 2022-02-11 17:22:11 +01:00
_randommodule.c bpo-46613: Add PyType_GetModuleByDef to the public API (GH-31081) 2022-02-11 17:22:11 +01:00
_scproxy.c bpo-1635741: port scproxy to multi-phase init (GH-22164) 2020-09-09 12:28:48 +09:00
_ssl.c [3.11] gh-107913: Fix possible losses of OSError error codes (GH-107930) (GH-108524) 2023-08-27 12:18:58 +00:00
_ssl.h bpo-46541: remove usage of _Py_IDENTIFIER from _ssl module (GH-31599) 2022-03-02 00:38:21 +09:00
_ssl_data.h closes bpo-40266, closes bpo-39953: Use numeric lib code if compiling against old OpenSSL. (GH-19506) 2020-04-13 22:11:40 -05:00
_ssl_data_111.h [3.11] gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (GH-105174) (#105200) 2023-06-01 18:07:53 +00:00
_ssl_data_300.h [3.11] gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (GH-105174) (#105200) 2023-06-01 18:07:53 +00:00
_stat.c [3.11] gh-86493: Fix possible leaks in some modules initialization (GH-106768) (GH-106855) (GH-106863) 2023-07-19 09:40:38 +03:00
_statisticsmodule.c bpo-40268: Remove unused structmember.h includes (GH-19530) 2020-04-15 02:35:41 +02:00
_struct.c GH-94254: Make _struct module types immutable (GH-94269) 2022-06-26 03:42:41 -07:00
_testbuffer.c gh-91320: Use _PyCFunction_CAST() (#92251) 2022-05-03 21:42:14 +02:00
_testcapi_feature_macros.inc gh-91324: List feature macros in the stable ABI manifest, improve tests (GH-32415) 2022-04-28 16:30:28 +02:00
_testcapimodule.c [3.11] gh-108851: Fix support.get_recursion_available() for USE_STACKCHECK (#110127) 2023-09-29 23:54:46 +02:00
_testclinic.c [3.11] gh-64490: Fix bugs in argument clinic varargs processing (GH-32092) (#100368) 2022-12-28 02:10:06 +01:00
_testimportmultiple.c Remove compile warnings for _testimportmodule 2012-12-15 18:16:47 +02:00
_testinternalcapi.c [3.11] gh-86493: Fix possible leaks in some modules initialization (GH-106768) (GH-106855) (GH-106863) 2023-07-19 09:40:38 +03:00
_testmultiphase.c gh-91320: Use _PyCFunction_CAST() (#92251) 2022-05-03 21:42:14 +02:00
_threadmodule.c [3.11] gh-109593: Fix reentrancy issue in multiprocessing resource_tracker (GH-109629) (#109897) 2023-09-26 12:21:52 +00:00
_tkinter.c [3.11] gh-112678: Declare Tkapp_CallDeallocArgs() as static (GH-112679) (GH-112691) 2023-12-04 08:18:03 +00:00
_tracemalloc.c [3.11] GH-96612: Skip incomplete frames in tracemalloc traces. (GH-96613) (#96617) 2022-09-06 18:42:41 +01:00
_typingmodule.c bpo-44353: Implement typing.NewType __call__ method in C (#27262) 2021-07-22 23:06:54 +02:00
_uuidmodule.c bpo-45847: Port _uuid to PY_STDLIB_MOD (GH-29741) 2021-11-24 10:20:37 +01:00
_weakref.c bpo-46937: convert remaining functions to AC in _weakref (GH-31705) 2022-03-07 18:57:45 +09:00
_winapi.c [3.11] gh-106844: Fix issues in _winapi.LCMapStringEx (GH-107832) (GH-107875) 2023-08-12 14:06:56 +03:00
_xxsubinterpretersmodule.c gh-93937, C API: Move PyFrame_GetBack() to Python.h (#93938) (#94000) 2022-06-20 15:47:41 +02:00
_zoneinfo.c [3.11] [3.12] bpo-42663: Fix parsing TZ strings in zoneinfo module (GH-23825) (GH-110882) (GH-110889) 2023-10-15 08:32:26 +00:00
addrinfo.h [3.11] gh-95174: WASI: skip missing sockets functions (GH-95179) (GH-95308) 2022-07-31 18:19:32 +02:00
arraymodule.c [3.11] gh-105375: Improve array.array exception handling (GH-105594) (#105643) 2023-06-11 10:22:31 +00:00
atexitmodule.c fixes gh-96292: Fix Trivial Typo in cpython/Modules/atexitmodule.c (GH-96327) 2022-08-26 22:59:21 -07:00
audioop.c bpo-2716: add license for audioop module (GH-19972) 2022-10-21 16:07:30 -07:00
binascii.c [3.11] gh-105967: Work around a macOS bug, limit zlib C library crc32 API calls to 1gig (GH-112615) (#112725) 2023-12-04 20:20:41 +00:00
cmathmodule.c [3.11] gh-86493: Fix possible leaks in some modules initialization (GH-106768) (GH-106855) (GH-106863) 2023-07-19 09:40:38 +03:00
config.c.in Add tests for the C tokenizer and expose it as a private module (GH-27924) 2021-08-24 17:50:05 +01:00
errnomodule.c [3.11] gh-105375: Improve errnomodule error handling (#105590) (#105595) 2023-06-09 20:35:30 +00:00
faulthandler.c [3.11] gh-110052: Fix faulthandler for freed tstate (#110069) (#110072) 2023-09-29 02:43:28 +00:00
fcntlmodule.c [3.11] gh-107913: Fix possible losses of OSError error codes (GH-107930) (GH-108524) 2023-08-27 12:18:58 +00:00
gc_weakref.txt Fix typos in the Modules directory (GH-28761) 2021-10-07 01:34:42 -07:00
gcmodule.c [3.11] gh-95324: Emit a warning if an object doesn't call PyObject_GC_UnTrack during deallocation in debug mode (GH-95325) (#95336) 2022-07-27 16:55:44 +01:00
getaddrinfo.c [3.11] gh-95174: WASI: skip missing sockets functions (GH-95179) (GH-95308) 2022-07-31 18:19:32 +02:00
getbuildinfo.c bpo-45532: Replace 'default' with 'main' as default in sys.version (GH-29100) 2021-10-21 02:09:03 +09:00
getnameinfo.c [3.11] gh-95174: WASI: skip missing sockets functions (GH-95179) (GH-95308) 2022-07-31 18:19:32 +02:00
getpath.c [3.11] gh-107913: Fix possible losses of OSError error codes (GH-107930) (GH-108524) 2023-08-27 12:18:58 +00:00
getpath.py gh-101543: Ensure Windows registry path is only used when stdlib can't be found (GH-101544) 2023-02-06 09:34:05 -08:00
getpath_noop.c bpo-45582: Port getpath[p].c to Python (GH-29041) 2021-12-03 00:08:42 +00:00
grpmodule.c [3.11] gh-104432: Use memcpy() to avoid misaligned loads (GH-104433) (#107356) 2023-07-28 06:36:45 +00:00
hashlib.h hashlib: Fix old message about unicode objects. (GH-28653) 2021-10-01 14:38:49 +02:00
itertoolsmodule.c [3.11] gh-109786: Fix leaks and crash when re-enter itertools.pairwise.__next__() (GH-109788) (GH-112700) 2023-12-04 12:20:19 +00:00
ld_so_aix.in Issue #10656: Fix out-of-tree building on AIX 2016-11-20 07:56:37 +00:00
main.c gh-90473: Check for HAVE_KILL in main.c:exit_sigint (GH-95165) 2022-07-23 04:09:10 -07:00
makesetup [3.11] gh-94404: Use module CFLAGS before PY_STDMODULE_CFLAGS (GH-94413) (GH-94415) 2022-06-29 16:22:41 +02:00
makexp_aix bpo-42087: Remove support for AIX 5.3 and below (GH-22830) 2020-11-16 16:16:10 +01:00
mathmodule.c [3.11] gh-86493: Fix possible leaks in some modules initialization (GH-106768) (GH-106855) (GH-106863) 2023-07-19 09:40:38 +03:00
md5module.c bpo-43974: Move Py_BUILD_CORE_MODULE into module code (GH-29157) 2021-10-22 15:36:28 +02:00
mmapmodule.c [3.11] gh-107913: Fix possible losses of OSError error codes (GH-107930) (GH-108524) 2023-08-27 12:18:58 +00:00
nismodule.c gh-91320: Use _PyCFunction_CAST() (#92251) 2022-05-03 21:42:14 +02:00
ossaudiodev.c gh-91734: Fix ossaudio support on Solaris (GH-91735) 2022-04-20 13:46:08 +03:00
overlapped.c [3.11] gh-107913: Fix possible losses of OSError error codes (GH-107930) (GH-108524) 2023-08-27 12:18:58 +00:00
posixmodule.c [3.11] bpo-11102: Make configure enable major(), makedev(), and minor() on HP-UX (GH-19856) (GH-113541) 2023-12-28 11:02:23 +00:00
posixmodule.h bpo-41498: Fix build on platforms without sigset_t (GH-29770) 2021-11-25 12:28:41 +01:00
pwdmodule.c bpo-46670: Remove unused macros in the Modules directory (GH-31194) 2022-02-07 16:21:31 +01:00
pyexpat.c [3.11] gh-105375: Harden pyexpat initialisation (#105606) (#105668) 2023-06-11 21:28:12 +00:00
readline.c [3.11] gh-112105: Make completer delims work on libedit (gh-112106) (gh-112488) 2023-11-28 06:39:47 +00:00
README Issue #18093: Factor out the programs that embed the runtime 2014-07-25 21:52:14 +10:00
resource.c bpo-40280: Address more test failures on Emscripten (GH-31050) 2022-02-05 20:52:01 +01:00
rotatingtree.c
rotatingtree.h bpo-32150: Expand tabs to spaces in C files. (#4583) 2017-11-28 17:56:10 +02:00
selectmodule.c [3.11] gh-107913: Fix possible losses of OSError error codes (GH-107930) (GH-108524) 2023-08-27 12:18:58 +00:00
Setup bpo-45847: Port _scproxy to PY_STDLIB_MOD (GH-29644) 2021-11-20 10:18:48 +01:00
Setup.bootstrap.in bpo-47152: Move sources of the _sre module into a subdirectory (GH-32290) 2022-04-04 10:53:26 +03:00
Setup.stdlib.in [3.11] gh-96002: Add functional test for Argument Clinic (GH-96178) (#100230) 2022-12-17 12:04:54 +05:30
sha1module.c bpo-43974: Move Py_BUILD_CORE_MODULE into module code (GH-29157) 2021-10-22 15:36:28 +02:00
sha256module.c bpo-43974: Move Py_BUILD_CORE_MODULE into module code (GH-29157) 2021-10-22 15:36:28 +02:00
sha512module.c bpo-43974: Move Py_BUILD_CORE_MODULE into module code (GH-29157) 2021-10-22 15:36:28 +02:00
signalmodule.c GH-102397: Fix segfault from race condition in signal handling (GH-102399) 2023-03-08 00:26:20 -08:00
socketmodule.c [3.11] bpo-37013: Fix the error handling in socket.if_indextoname() (GH-13503) (GH-112598) 2023-12-25 20:55:27 +02:00
socketmodule.h bpo-40280: Disable AF_UNIX, AF_PACKET, SO_REUSE* on Emscripten (#31829) 2022-03-11 23:25:14 +01:00
spwdmodule.c gh-91217: deprecate spwd (#91846) 2022-04-23 14:48:17 -07:00
symtablemodule.c bpo-42725: Render annotations effectless on symbol table with PEP 563 (GH-25583) 2021-05-03 10:43:00 +03:00
syslogmodule.c gh-98178: syslog() is not thread-safe on macOS (GH-98213) 2022-10-13 04:59:23 -07:00
termios.c [3.11] gh-110365: Fix error overwrite in termios.tcsetattr (GH-110366) (#110390) 2023-10-05 14:21:34 +02:00
testcapi_long.h Issue #9530: Fix undefined behaviour due to signed overflow in testcapi_long.h. 2011-11-19 17:58:15 +00:00
timemodule.c [3.11] gh-86493: Fix possible leaks in some modules initialization (GH-106768) (GH-106855) (GH-106863) 2023-07-19 09:40:38 +03:00
tkappinit.c Issue #4350: Removed a number of out-of-dated and non-working for a long time 2014-07-23 22:33:50 +03:00
tkinter.h Issue #16840. Turn off bignum support in tkinter with with Tcl earlier than 8.5.8 2015-04-22 10:59:32 +03:00
unicodedata.c gh-101372: Fix unicodedata.is_normalized to properly handle the UCD 3… (gh-101388) 2023-02-06 02:32:30 -08:00
unicodedata_db.h closes bpo-45190: Update Unicode data to version 14.0.0. (GH-28336) 2021-09-14 11:00:38 -07:00
unicodename_db.h closes bpo-45190: Update Unicode data to version 14.0.0. (GH-28336) 2021-09-14 11:00:38 -07:00
winreparse.h bpo-31512: Add non-elevated symlink support for Windows (GH-3652) 2019-04-09 11:19:46 -07:00
xxlimited.c [3.11] gh-95324: Emit a warning if an object doesn't call PyObject_GC_UnTrack during deallocation in debug mode (GH-95325) (#95336) 2022-07-27 16:55:44 +01:00
xxlimited_35.c [3.11] gh-90763: Modernise xx template module initialisation (GH-93078) (#93681) 2022-06-10 13:28:48 +02:00
xxmodule.c [3.11] gh-90763: Modernise xx template module initialisation (GH-93078) (#93681) 2022-06-10 13:28:48 +02:00
xxsubtype.c [3.11] gh-86493: Fix possible leaks in modules initialization: _curses_panel, _decimal, posix, xxsubtype (GH-106767) (GH-106849) (GH-106851) 2023-07-18 12:53:17 +03:00
zlibmodule.c [3.11] gh-105967: Work around a macOS bug, limit zlib C library crc32 API calls to 1gig (GH-112615) (#112725) 2023-12-04 20:20:41 +00:00

Source files for standard library extension modules,
and former extension modules that are now builtin modules.