Skip to content

Crash in substitution of nested TypeVar after TypeVarTuple #93345

@serhiy-storchaka

Description

@serhiy-storchaka

During work on #93330 I have found an error in the C code which causes crash when substitute a TypeVar in nested generic alias after TypeVarTuple.

For example:

>>> from typing import * >>> T = TypeVar('T') >>> Ts = TypeVarTuple('Ts') >>> tuple[*Ts, list[T]][int, str, bool] Segmentation fault (core dumped) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixestopic-typingtype-crashA hard crash of the interpreter, possibly with a core dump

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions