[New-bugs-announce] [issue32179] Empty email address in headers triggers an IndexError

Massimiliano Torromeo report at bugs.python.org
Thu Nov 30 06:27:18 EST 2017


New submission from Massimiliano Torromeo <massimiliano.torromeo at gmail.com>:

In case an address email header contains and empty string, the tokenizer return a BareQuotedString
which is also a TokenList, but this list is empty and the parser fails to check this and insteads raises an IndexError.

For example an email with this header will trigger the IndexError:
ReplyTo: ""

----------
components: email
messages: 307292
nosy: barry, mtorromeo, r.david.murray
priority: normal
pull_requests: 4559
severity: normal
status: open
title: Empty email address in headers triggers an IndexError
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32179>
_______________________________________


More information about the New-bugs-announce mailing list