Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANN401 induces a stack overflow on quoted quoted escape sequences #14695

Open
dscorbett opened this issue Nov 30, 2024 · 0 comments · May be fixed by #14700
Open

ANN401 induces a stack overflow on quoted quoted escape sequences #14695

dscorbett opened this issue Nov 30, 2024 · 0 comments · May be fixed by #14700
Labels
bug Something isn't working help wanted Contributions especially welcome parser Related to the parser

Comments

@dscorbett
Copy link

dscorbett commented Nov 30, 2024

any-type (ANN401) overflows the stack in Ruff 0.6.4 through Ruff 0.8.1 for a quoted annotation with an extra layer of quotation marks containing an escape sequence.

$ cat ann401.py
def f(x: "'in\x74'"): pass

$ ruff check --isolated --select ANN401 ann401.py

thread 'main' has overflowed its stack
fatal runtime error: stack overflow
@AlexWaygood AlexWaygood added bug Something isn't working help wanted Contributions especially welcome labels Nov 30, 2024
@dylwil3 dylwil3 added the parser Related to the parser label Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Contributions especially welcome parser Related to the parser
Projects
None yet
3 participants