Skip to content

gh-156099: Fix a crash when deleting SSLContext.keylog_filename - #156103

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:gh-156099-ssl-keylog-delete
Aug 21, 2026
Merged

serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:gh-156099-ssl-keylog-delete

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

The setter did not check the value for NULL and passed it to Py_fopen().
Deleting the attribute now raises AttributeError, like other attributes of _ssl._SSLContext.

The setter did not check the value for NULL and passed it to Py_fopen().
@serhiy-storchaka
serhiy-storchaka merged commit 5ebd486 into python:main Aug 21, 2026
102 of 104 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@serhiy-storchaka
serhiy-storchaka deleted the gh-156099-ssl-keylog-delete branch August 21, 2026 06:36
@miss-islington-app

Copy link
Copy Markdown

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.15 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 5ebd4860d3746eaeb890c947799508e1ed4936fe 3.15
@miss-islington-app

Copy link
Copy Markdown

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 5ebd4860d3746eaeb890c947799508e1ed4936fe 3.14
@miss-islington-app

Copy link
Copy Markdown

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 5ebd4860d3746eaeb890c947799508e1ed4936fe 3.13
@bedevere-app

bedevere-app Bot commented Aug 21, 2026

Copy link
Copy Markdown

GH-156148 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Aug 21, 2026
@bedevere-app

bedevere-app Bot commented Aug 21, 2026

Copy link
Copy Markdown

GH-156149 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Aug 21, 2026
@bedevere-app

bedevere-app Bot commented Aug 21, 2026

Copy link
Copy Markdown

GH-156150 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Aug 21, 2026
serhiy-storchaka added a commit that referenced this pull request Aug 21, 2026
GH-156103) (GH-156149)

The setter did not check the value for NULL and passed it to Py_fopen().

(cherry picked from commit 5ebd486)
serhiy-storchaka added a commit that referenced this pull request Aug 21, 2026
GH-156103) (GH-156150)

The setter did not check the value for NULL and passed it to Py_fopen().

(cherry picked from commit 5ebd486)
serhiy-storchaka added a commit that referenced this pull request Oct 9, 2026
GH-156103) (GH-156148)

gh-156099: Fix a crash when deleting SSLContext.keylog_filename (GH-156103)

The setter did not check the value for NULL and passed it to Py_fopen().

(cherry picked from commit 5ebd486)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants