Crash report
import ssl
ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
del ctx.keylog_filename
_PySSLContext_set_keylog_filename() in Modules/_ssl/debughelpers.c does not check the value for NULL and passes it to Py_fopen().
It should raise an AttributeError instead, like the setters generated by Argument Clinic in Modules/_ssl.c.
The same code is in 3.13, 3.14 and 3.15.
Linked PRs
Crash report
_PySSLContext_set_keylog_filename()inModules/_ssl/debughelpers.cdoes not check the value forNULLand passes it toPy_fopen().It should raise an
AttributeErrorinstead, like the setters generated by Argument Clinic inModules/_ssl.c.The same code is in 3.13, 3.14 and 3.15.
Linked PRs