[Python-checkins] CVS: python/dist/src/Objects listobject.c,2.83,2.84
Trent Mick
python-dev@python.org
Sun, 13 Aug 2000 15:47:48 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Python compile.c,2.122,2.123
- Next message: [Python-checkins] CVS: python/dist/src/PCbuild _socket.dsp,1.3,1.4 _sre.dsp,1.4,1.5 _tkinter.dsp,1.16,1.17 bsddb.dsp,1.12,1.13 mmap.dsp,1.6,1.7 parser.dsp,1.10,1.11 pyexpat.dsp,1.4,1.5 python.dsp,1.12,1.13 python20.dsp,1.6,1.7 pythonw.dsp,1.10,1.11 select.dsp,1.3,1.4 ucnhash.dsp,1.5,1.6 unicodedata.dsp,1.5,1.6 winreg.dsp,1.6,1.7 winsound.dsp,1.5,1.6 zlib.dsp,1.13,1.14 pcbuild.dsw,1.19,1.20
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Objects
In directory slayer.i.sourceforge.net:/tmp/cvs-serv1607/Objects
Modified Files:
listobject.c
Log Message:
Check for overflow in list object insertion and raise OverflowError.
see: http://www.python.org/pipermail/python-dev/2000-August/014971.html
Index: listobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/listobject.c,v
retrieving revision 2.83
retrieving revision 2.84
diff -C2 -r2.83 -r2.84
*** listobject.c 2000/07/25 12:56:38 2.83
--- listobject.c 2000/08/13 22:47:45 2.84
***************
*** 135,138 ****
--- 135,143 ----
return -1;
}
+ if (self->ob_size == INT_MAX) {
+ PyErr_SetString(PyExc_OverflowError,
+ "cannot add more objects to list");
+ return -1;
+ }
items = self->ob_item;
NRESIZE(items, PyObject *, self->ob_size+1);
- Previous message: [Python-checkins] CVS: python/dist/src/Python compile.c,2.122,2.123
- Next message: [Python-checkins] CVS: python/dist/src/PCbuild _socket.dsp,1.3,1.4 _sre.dsp,1.4,1.5 _tkinter.dsp,1.16,1.17 bsddb.dsp,1.12,1.13 mmap.dsp,1.6,1.7 parser.dsp,1.10,1.11 pyexpat.dsp,1.4,1.5 python.dsp,1.12,1.13 python20.dsp,1.6,1.7 pythonw.dsp,1.10,1.11 select.dsp,1.3,1.4 ucnhash.dsp,1.5,1.6 unicodedata.dsp,1.5,1.6 winreg.dsp,1.6,1.7 winsound.dsp,1.5,1.6 zlib.dsp,1.13,1.14 pcbuild.dsw,1.19,1.20
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]