Joel Uckelman added the comment:
I have this happening on Linux with a Flask app after upgrading from Fedora 34
to 35. libpython keeps crashing httpd.
I see this from journalctl:
#0 0x7fd899baa801 PyObject_Malloc (libpython3.10.so.1.0 + 0xf7801)
#1 0x7fd899baab47
Joel Uckelman added the comment:
Here's a patch, complete with tests.
If the value is all CFWS, then get_cfws(value)[1], which is what's left after
the CFWS is extracted, is the empty string---which is why value[0] throws in
this case.
--
keywords: +patch
Added file: http
Joel Uckelman added the comment:
I'm working on a patch now.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29412>
___
___
Pyth
Changes by Joel Uckelman <uckel...@nomic.net>:
--
title: IndexError thrown on email.message.EmailMessage.get -> IndexError thrown
on email.message.Message.get
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pyt
Joel Uckelman added the comment:
No dice. I get the same exception with issue27931_v2.patch. I briefly looked at
the other two, and don't expect those will help, either.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.p
Changes by Joel Uckelman <uckel...@nomic.net>:
--
title: IndexError thrown on email.message.M -> IndexError thrown on
email.message.EmailMessage.get
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pyt
New submission from Joel Uckelman:
Test case:
import email
import email.policy
txt = '''From: juckel...@strozfriedberg.co.uk
To: (Recipient list suppressed)
Date: Thu, 22 Aug 2013 04:13:02 +
Subject: ADSF-1082
Hey!
'''
msg = email.message_from_string(txt)
msg.get