cpython/Lib/test/test_email
Petr Viktorin 15068242bd
[3.12] [CVE-2023-27043] gh-102988: Reject malformed addresses in email.parseaddr() (GH-111116) (#123766)
Detect email address parsing errors and return empty tuple to
indicate the parsing error (old API). Add an optional 'strict'
parameter to getaddresses() and parseaddr() functions. Patch by
Thomas Dwyer.

Co-Authored-By: Thomas Dwyer <github@tomd.tel>
(cherry picked from commit 4a153a1d3b)

Co-authored-by: Victor Stinner <vstinner@python.org>
2024-09-06 12:46:16 +02:00
..
data
__init__.py
__main__.py
test__encoded_words.py
test__header_value_parser.py [3.12] gh-118643: Fix AttributeError in the email module (GH-119099) (GH-119390) 2024-05-22 14:08:05 +03:00
test_asian_codecs.py
test_contentmanager.py
test_defect_handling.py
test_email.py [3.12] [CVE-2023-27043] gh-102988: Reject malformed addresses in email.parseaddr() (GH-111116) (#123766) 2024-09-06 12:46:16 +02:00
test_generator.py [3.12] gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233) (#122599) 2024-08-06 19:07:19 +02:00
test_headerregistry.py [3.12] gh-92081: Fix for email.generator.Generator with whitespace between encoded words. (GH-92281) (#119246) 2024-05-20 20:10:49 +00:00
test_inversion.py
test_message.py
test_parser.py
test_pickleable.py
test_policy.py [3.12] gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233) (#122599) 2024-08-06 19:07:19 +02:00
test_utils.py [3.12] gh-113027: Fix test_variable_tzname in test_email (GH-113821) (GH-113831) 2024-01-12 12:00:17 +00:00
torture_test.py