Dong-hee Na <donghee.n...@gmail.com> 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.firstlinelen as same as Python3.

2017-10-11 0:46 GMT+09:00 Serhiy Storchaka <rep...@bugs.python.org>:
>
> Serhiy Storchaka <storchaka+cpyt...@gmail.com> 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 <rep...@bugs.python.org>
> <https://bugs.python.org/issue31314>
> _______________________________________

-- 
Chungnam National University | Computer Science & Engineering

Tel: +82 010-3353-9127
Email: donghee.n...@gmail.com
Linkedin: https://www.linkedin.com/in/dong-hee-na-2b713b49/

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31314>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to