This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ocean-city
Recipients hagen, ocean-city
Date 2008-11-11.16:45:42
SpamBayes Score 5.602625e-07
Marked as misclassified No
Message-id <1226421943.67.0.042599007654.issue4298@psf.upfronthosting.co.za>
In-reply-to
Content
See trunk/Modules/cPickle.c(609).

static Py_ssize_t
read_cStringIO(Unpicklerobject *self, char **s, Py_ssize_t  n)
{
	char *ptr;

	if (PycStringIO->cread((PyObject *)self->file, &ptr, n) != n) {
		PyErr_SetNone(PyExc_EOFError);
		return -1;
	}

	*s = ptr;

	return n;
}

It's checking the length of returned string and if not match, raises
EOFError. But there is no corresponding code in py3k.

I hope attached patch will fix this issue.
History
Date User Action Args
2008-11-11 16:45:43ocean-citysetrecipients: + ocean-city, hagen
2008-11-11 16:45:43ocean-citysetmessageid: <1226421943.67.0.042599007654.issue4298@psf.upfronthosting.co.za>
2008-11-11 16:45:42ocean-citylinkissue4298 messages
2008-11-11 16:45:42ocean-citycreate