Skip to content

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

Open
serhiy-storchaka wants to merge 2 commits into
python:mainfrom
serhiy-storchaka:gh-156099-ssl-keylog-delete
Open

gh-156099: Fix a crash when deleting SSLContext.keylog_filename#156103
serhiy-storchaka wants to merge 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 added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant