Staging
v0.8.1
https://github.com/python/cpython
Revision 9edcad326e517e26e8383e5c394981ec2f899179 authored by Barry Warsaw on 05 December 2004, 03:34:14 UTC, committed by Barry Warsaw on 05 December 2004, 03:34:14 UTC
caused by a self._input.readline() call that wasn't checking for the
NeedsMoreData marker.

msg_43.txt contains a message that illustrates the problem, when
email.message_from_*() is called.  That interface uses the Parser API, which
splits reads into 8192 byte chunks.  It so happens that for the test message,
the 8192 chunk falls inside a message/delivery-status, which is where in the
FeedParser the readline() call was that didn't check for NeedsMoreData.

I also added an assert to unreadline() so it'll be more evident if an attempt
to push back NeedsMoreData ever happens again.

Bump the email package version number.
1 parent 80367c4
History
Tip revision: 9edcad326e517e26e8383e5c394981ec2f899179 authored by Barry Warsaw on 05 December 2004, 03:34:14 UTC
Fixes for SF #1076485, which I'll apply to the CVS head too. The problem was
Tip revision: 9edcad3
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 109 bytes
.hgtags -rw-r--r-- 2.5 KB
LICENSE -rw-r--r-- 12.9 KB
Makefile.pre.in -rw-r--r-- 31.6 KB
README -rw-r--r-- 48.3 KB
aclocal.m4 -rw-r--r-- 2.1 KB
configure -rwxr-xr-x 572.0 KB
configure.in -rw-r--r-- 84.8 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 23.8 KB
setup.py -rw-r--r-- 51.2 KB

README

back to top