-
-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
RecursionError in email.utils.parseaddr #103800
Comments
Can you explain why this is a problem that needs to be fixed? If you give pathological input to a function, an exception is not an unexpected result. Also note that this can be reproduced with just the following: from email.utils import parseaddr
parseaddr(':' * 100_000) Please put some effort into reducing your reproducers to the smallest possible code before posting an issue. |
The RecursionError is not a bug when the (modifiable) recursion limit is reached. Nor is using recursion in our code, given that we have documented that our code has (undocumented) input size limits. So, not a bug. There could possibly be a performance feaure request. EDIT: replace incorrect statement and misleading example with corrected statement. |
Bug report
We did a fuzzing test on Python3.9.15, a recursion error happened.
code
The input value:
input
Bug info
My environment
CPython: 3.9.15
Ubuntu: 18.0.4 (x86 64)
The text was updated successfully, but these errors were encountered: