[issue37764] email.Message.as_string infinite loop

2019-08-07 Thread My Tran


My Tran  added the comment:

I looked at the job at https://travis-ci.com/epicfaace/cpython/jobs/223345147 
and its running py3.6.

--

___
Python tracker 
<https://bugs.python.org/issue37764>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37764] email.Message.as_string infinite loop

2019-08-07 Thread My Tran


My Tran  added the comment:

Reproduced on 3.7.4

Looks like this started happening after this commit: 
https://github.com/python/cpython/commit/dc20fc4311dece19488299a7cd11317ffbe4d3c3#diff-19171ae20182f6759204a3436475ddd1

--

___
Python tracker 
<https://bugs.python.org/issue37764>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37722] imaplib crashes when trying to read a letter from an imap server imaps.почта.рус

2019-08-05 Thread My Tran


Change by My Tran :


--
components: +email -Library (Lib)
nosy: +barry, r.david.murray

___
Python tracker 
<https://bugs.python.org/issue37722>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37764] email.Message.as_string infinite loop

2019-08-05 Thread My Tran


New submission from My Tran :

The following will hang the system until it runs out of memory. 

import email
import email.policy

text = """From: u...@host.com
To: u...@host.com
Bad-Header:
 =?us-ascii?Q?LCSwrV11+IB0rSbSker+M9vWR7wEDSuGqmHD89Gt=ea0nJFSaiz4vX3XMJPT4vrE?=
 =?us-ascii?Q?xGUZeOnp0o22pLBB7CYLH74Js=wOlK6Tfru2U47qR?=
 =?us-ascii?Q?72OfyEY2p2=2FrA9xNFyvH+fBTCmazxwzF8nGkK6D?=

Hello!
"""

eml = email.message_from_string(text, policy=email.policy.SMTPUTF8)
eml.as_string()

--
components: email
messages: 349055
nosy: barry, mytran, r.david.murray
priority: normal
severity: normal
status: open
title: email.Message.as_string infinite loop
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue37764>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com