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 christian.heimes
Recipients ajaksu2, alexandre.vassalotti, christian.heimes
Date 2008-08-24.20:44:10
SpamBayes Score 0.002197711
Marked as misclassified No
Message-id <1219610652.08.0.164380358894.issue3664@psf.upfronthosting.co.za>
In-reply-to
Content
pickler_write() has no check for self->write_buf == NULL

Suggested patch:
===================================================================
--- Modules/_pickle.c   (Revision 66010)
+++ Modules/_pickle.c   (Arbeitskopie)
@@ -421,6 +421,10 @@
 {
     PyObject *data, *result;

+    if (self->write_buf == NULL) {
+        PyErr_SetString(PyExc_SystemError, "Invalid write buffer");
+        return -1;
+    }
     if (s == NULL) {
         if (!(self->buf_size))
             return 0;
History
Date User Action Args
2008-08-24 20:44:12christian.heimessetrecipients: + christian.heimes, ajaksu2, alexandre.vassalotti
2008-08-24 20:44:12christian.heimessetmessageid: <1219610652.08.0.164380358894.issue3664@psf.upfronthosting.co.za>
2008-08-24 20:44:11christian.heimeslinkissue3664 messages
2008-08-24 20:44:11christian.heimescreate