]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38708: email: Fix a potential IndexError when parsing Message-ID (GH-17504)
authorAbhilash Raj <maxking@users.noreply.github.com>
Mon, 9 Dec 2019 01:37:34 +0000 (17:37 -0800)
committerGitHub <noreply@github.com>
Mon, 9 Dec 2019 01:37:34 +0000 (17:37 -0800)
commit3ae4ea1931361dd2743e464790e739d9285501bf
tree56b73bd2a05fc6f53d9cbb0ad9cfb72547b97111
parent68157da8b42b26408af5d157d2dba4fcf29c6320
bpo-38708: email: Fix a potential IndexError when parsing Message-ID (GH-17504)

Fix a potential IndexError when passing an empty value to the message-id
parser. Instead, HeaderParseError should be raised.
Lib/email/_header_value_parser.py
Lib/test/test_email/test__header_value_parser.py
Misc/NEWS.d/next/Library/2019-12-07-22-25-39.bpo-38708.rZTUfk.rst [new file with mode: 0644]