You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Attribute lookup on SSLSession object created through public constructor causes SIGSEGV #94101
>>> import ssl
>>> s = ssl.SSLSession()
>>> s.id
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff73b8949 in SSL_SESSION_get_id () from /usr/lib/libssl.so.1.1
Environment:
CPython version tested on: 3.10.3, 3.12.0a0.
SSL version: 1.1.1n.
Linux, 5.16.9-arch1-1, x86_64.
The possible fix is to disallow instantiation for SSLSession type. Access to session property of SSLSocket objects works through PySSL_get_session (which does all necessary checks) and attributes of SSLSession objects are read-only so I think it shouldn't break anything.
Activity
gh-94101 Disallow instantiation of SSLSession objects (GH-94102)
pythongh-94101 Disallow instantiation of SSLSession objects (pythonGH…
pythongh-94101 Disallow instantiation of SSLSession objects (pythonGH…
gh-94101 Disallow instantiation of SSLSession objects (GH-94102)
gh-94101 Disallow instantiation of SSLSession objects (GH-94102)
Revert 30935 defer bpo45162 to 312 (#94285)