[Python-bugs-list] [ python-Bugs-654362 ] email: huge address lines blow stack
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 30 Dec 2002 09:29:58 -0800
Bugs item #654362, was opened at 2002-12-15 23:59
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=654362&group_id=5470
Category: Python Library
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Submitted By: Mark Hammond (mhammond)
Assigned to: Barry A. Warsaw (bwarsaw)
Summary: email: huge address lines blow stack
Initial Comment:
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.
bugfix candidate I guess?
----------------------------------------------------------------------
>Comment By: Barry A. Warsaw (bwarsaw)
Date: 2002-12-30 12:29
Message:
Logged In: YES
user_id=12800
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=654362&group_id=5470