Skip to content

[3.14] gh-156124: Fix a crash when deleting ctypes Pointer.contents (GH-156125) - #156154

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-ca6e733-3.14
Aug 21, 2026
Merged

[3.14] gh-156124: Fix a crash when deleting ctypes Pointer.contents (GH-156125)#156154
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-ca6e733-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

In the free-threaded build the setter passed the value to
Py_BEGIN_CRITICAL_SECTION2() before checking it for NULL.
(cherry picked from commit ca6e733)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…ythonGH-156125)

In the free-threaded build the setter passed the value to
Py_BEGIN_CRITICAL_SECTION2() before checking it for NULL.
(cherry picked from commit ca6e733efcb624ebcd63a38b73eb92496bc7ca1b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) August 21, 2026 07:06
@serhiy-storchaka
serhiy-storchaka merged commit a434d87 into python:3.14 Aug 21, 2026
51 checks passed
@miss-islington
miss-islington deleted the backport-ca6e733-3.14 branch August 21, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants