[Python-checkins] python/dist/src/Python marshal.c,1.79,1.80
arigo at users.sourceforge.net
arigo at users.sourceforge.net
Mon Dec 20 13:25:59 CET 2004
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv325/Python
Modified Files:
marshal.c
Log Message:
Any call to marshal.dumps() with the new optional argument 'version' just
immediately segfaults, due to a typo! This was obviously never tested...
Added a test for it, and also fixed the documentation.
Index: marshal.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/marshal.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- marshal.c 27 Jun 2004 16:51:46 -0000 1.79
+++ marshal.c 20 Dec 2004 12:25:57 -0000 1.80
@@ -893,7 +893,7 @@
{
PyObject *x;
int version = Py_MARSHAL_VERSION;
- if (!PyArg_ParseTuple(args, "O|i:dumps", &x, version))
+ if (!PyArg_ParseTuple(args, "O|i:dumps", &x, &version))
return NULL;
return PyMarshal_WriteObjectToString(x, version);
}
More information about the Python-checkins
mailing list