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
The following code will recurse until Python throws an
exception:
"""
import email.Utils
addrlist = ["foo@bar.com"] * 2000
email.Utils.getaddresses(addrlist)
"""
I found a huge address list in my spam archive, which
is how I found the error. Attaching suggested patch
that avoids recursion.
Funny, I just copied the implementation of this up from
rfc822.py into _parseaddr.py and it has something very
similar to what you done. It uses += instead of .extend()
but I think that makes no difference.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: