Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Attribute lookup on SSLSession object created through public constructor causes SIGSEGV #94101

Closed
Labels
type-bugAn unexpected behavior, bug, or error
@chgnrdv

Description

@chgnrdv

Example:

>>> import ssl>>> s = ssl.SSLSession()>>> s.idProgram 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 forSSLSession type. Access tosession property ofSSLSocket objects works throughPySSL_get_session (which does all necessary checks) and attributes ofSSLSession objects are read-only so I think it shouldn't break anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp