[issue31314] email throws exception with oversized header input

2021-06-27 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list ma

[issue31314] email throws exception with oversized header input

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: This is working now: >>> import sys, email >>> mail = email.message_from_string( ... """From: ... To: ... Subject: demo ... X-Overlong-Header-Name-causes-python-mail-to-crash-in-re-serialization-example: ... ... Hello ... """) >>> >>> mail >>> message = mail

[issue31314] email throws exception with oversized header input

2017-10-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -4037 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31314] email throws exception with oversized header input

2017-10-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4037 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue31314] email throws exception with oversized header input

2017-10-11 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: -3911 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue31314] email throws exception with oversized header input

2017-10-10 Thread Dong-hee Na
Dong-hee Na added the comment: And my patch was wrong, I will re-upload it soon. 2017-10-11 13:51 GMT+09:00 Dong-hee Na : > > Dong-hee Na added the comment: > > I found that when email header's self._firstlinelen value is negative > then self._split() returns an empty list. > Because when the

[issue31314] email throws exception with oversized header input

2017-10-10 Thread Dong-hee Na
Dong-hee Na added the comment: I found that when email header's self._firstlinelen value is negative then self._split() returns an empty list. Because when the self._firstlinelen value is negative value then 'targetlen' becomes a negative value. I will update a patch into calculating self.first

[issue31314] email throws exception with oversized header input

2017-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 3938 fixes this issue, but I'm wondering why self._split() returns an empty list only for long header names. -- nosy: +serhiy.storchaka ___ Python tracker _

[issue31314] email throws exception with oversized header input

2017-10-09 Thread Dong-hee Na
Dong-hee Na added the comment: I sent a patch if anyone have a time, please take a look :) -- nosy: +corona10 ___ Python tracker ___ ___

[issue31314] email throws exception with oversized header input

2017-10-09 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +3911 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue31314] email throws exception with oversized header input

2017-08-31 Thread Matthias Klose
New submission from Matthias Klose: [forwarded from https://bugs.debian.org/854001] $ cat tst.py #!/usr/bin/env python import sys import email mail = email.message_from_string( """From: To: Subject: demo X-Overlong-Header-Name-causes-python-mail-to-crash-in-re-serialization-example: Hello ""