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 jnferguson
Recipients amaury.forgeotdarc, jnferguson
Date 2008-04-08.17:06:28
SpamBayes Score 0.38395357
Marked as misclassified No
Message-id <1207674390.04.0.542695260136.issue2587@psf.upfronthosting.co.za>
In-reply-to
Content
As an addemdum, consider the following code (theres no assert, but it
wouldnt have helped you outside of debug builds anyways):


488 static PyObject *PySSL_SSLread(PySSLObject *self, PyObject *args)
489 {
490         PyObject *buf;
491         int count = 0;
492         int len = 1024;
[...]
496         if (!PyArg_ParseTuple(args, "|i:read", &len))
497                 return NULL;
498 
499         if (!(buf = PyString_FromStringAndSize((char *) 0, len)))
500                 return NULL;
[...]
521                 count = SSL_read(self->ssl, PyString_AsString(buf),
len);
History
Date User Action Args
2008-04-08 17:06:30jnfergusonsetspambayes_score: 0.383954 -> 0.38395357
recipients: + jnferguson, amaury.forgeotdarc
2008-04-08 17:06:30jnfergusonsetspambayes_score: 0.383954 -> 0.383954
messageid: <1207674390.04.0.542695260136.issue2587@psf.upfronthosting.co.za>
2008-04-08 17:06:29jnfergusonlinkissue2587 messages
2008-04-08 17:06:28jnfergusoncreate