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 pitrou
Recipients David.Edelsohn, pitrou
Date 2013-05-07.15:59:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367942397.53.0.54308242862.issue17926@psf.upfronthosting.co.za>
In-reply-to
Content
Forget it, can you just try the following patch?

diff --git a/Modules/dbmmodule.c b/Modules/dbmmodule.c
--- a/Modules/dbmmodule.c
+++ b/Modules/dbmmodule.c
@@ -168,11 +168,13 @@
 dbm_contains(register dbmobject *dp, PyObject *v)
 {
     datum key, val;
+    char *ptr;
+    Py_ssize_t size;
 
-    if (PyString_AsStringAndSize(v, (char **)&key.dptr,
-                                 (Py_ssize_t *)&key.dsize)) {
+    if (PyString_AsStringAndSize(v, &ptr, &size))
         return -1;
-    }
+    key.dptr = ptr;
+    key.dsize = size;
 
     /* Expand check_dbmobject_open to return -1 */
     if (dp->di_dbm == NULL) {
History
Date User Action Args
2013-05-07 15:59:57pitrousetrecipients: + pitrou, David.Edelsohn
2013-05-07 15:59:57pitrousetmessageid: <1367942397.53.0.54308242862.issue17926@psf.upfronthosting.co.za>
2013-05-07 15:59:57pitroulinkissue17926 messages
2013-05-07 15:59:57pitroucreate