[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.141.2.7,1.141.2.8
Anthony Baxter
anthonybaxter@users.sourceforge.net
Sat, 22 Dec 2001 17:44:51 -0800
- Previous message: [Python-checkins] CVS: python/dist/src/Lib asyncore.py,1.10.4.1,1.10.4.2
- Next message: [Python-checkins] CVS: python/dist/src/Lib ftplib.py,1.53.2.1,1.53.2.2 gopherlib.py,1.9,1.9.4.1 httplib.py,1.34.2.1,1.34.2.2 imaplib.py,1.27.4.1,1.27.4.2 nntplib.py,1.26,1.26.4.1 poplib.py,1.14,1.14.4.1 smtplib.py,1.36,1.36.4.1 socket.py,1.11.2.1,1.11.2.2 telnetlib.py,1.11,1.11.4.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv12993
Modified Files:
Tag: release21-maint
socketmodule.c
Log Message:
backport of 1.196: socket.recv(-1) fixup.
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.141.2.7
retrieving revision 1.141.2.8
diff -C2 -d -r1.141.2.7 -r1.141.2.8
*** socketmodule.c 2001/11/01 14:25:38 1.141.2.7
--- socketmodule.c 2001/12/23 01:44:49 1.141.2.8
***************
*** 1325,1328 ****
--- 1325,1333 ----
if (!PyArg_ParseTuple(args, "i|i:recv", &len, &flags))
return NULL;
+ if (len < 0) {
+ PyErr_SetString(PyExc_ValueError,
+ "negative buffersize in connect");
+ return NULL;
+ }
buf = PyString_FromStringAndSize((char *) 0, len);
if (buf == NULL)
- Previous message: [Python-checkins] CVS: python/dist/src/Lib asyncore.py,1.10.4.1,1.10.4.2
- Next message: [Python-checkins] CVS: python/dist/src/Lib ftplib.py,1.53.2.1,1.53.2.2 gopherlib.py,1.9,1.9.4.1 httplib.py,1.34.2.1,1.34.2.2 imaplib.py,1.27.4.1,1.27.4.2 nntplib.py,1.26,1.26.4.1 poplib.py,1.14,1.14.4.1 smtplib.py,1.36,1.36.4.1 socket.py,1.11.2.1,1.11.2.2 telnetlib.py,1.11,1.11.4.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]