[issue6465] email.feedparser regular expression bug (NLCRE_crack)

jkg report at bugs.python.org
Sat Jul 11 21:58:41 CEST 2009


New submission from jkg <python at slashbot.com>:

If the parser is fed a chunk which ends with '\r' and the next chunk
begins with '\n', it incorrectly parses this into a line ending with
'\r' and an empty line ending with '\n' instead of a single line ending
with '\r\n'.

Test attached. Patch to follow.

----------
components: Library (Lib)
files: test_nlcre.py
messages: 90433
nosy: barry, jkg, tony_nelson
severity: normal
status: open
title: email.feedparser regular expression bug (NLCRE_crack)
type: behavior
versions: Python 2.4, Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file14484/test_nlcre.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6465>
_______________________________________


More information about the Python-bugs-list mailing list