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

email: huge address lines blow stack #37614

Closed
mhammond opened this issue Dec 16, 2002 · 2 comments
Closed

email: huge address lines blow stack #37614

mhammond opened this issue Dec 16, 2002 · 2 comments
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@mhammond
Copy link
Contributor

BPO 654362
Nosy @mhammond, @warsaw
Files
  • crash_email.patch: Possible patch
  • 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:

    assignee = 'https://github.com/warsaw'
    closed_at = <Date 2002-12-30.17:29:58.000>
    created_at = <Date 2002-12-16.04:59:03.000>
    labels = ['library']
    title = 'email: huge address lines blow stack'
    updated_at = <Date 2002-12-30.17:29:58.000>
    user = 'https://github.com/mhammond'

    bugs.python.org fields:

    activity = <Date 2002-12-30.17:29:58.000>
    actor = 'barry'
    assignee = 'barry'
    closed = True
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2002-12-16.04:59:03.000>
    creator = 'mhammond'
    dependencies = []
    files = ['712']
    hgrepos = []
    issue_num = 654362
    keywords = []
    message_count = 2.0
    messages = ['13617', '13618']
    nosy_count = 2.0
    nosy_names = ['mhammond', 'barry']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue654362'
    versions = []

    @mhammond
    Copy link
    Contributor Author

    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?

    @mhammond mhammond added the stdlib Python modules in the Lib dir label Dec 16, 2002
    @mhammond mhammond added the stdlib Python modules in the Lib dir label Dec 16, 2002
    @warsaw
    Copy link
    Member

    warsaw commented Dec 30, 2002

    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.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants