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 brett.cannon
Recipients brett.cannon, georg.brandl
Date 2011-02-04.01:26:08
SpamBayes Score 0.017694442
Marked as misclassified No
Message-id <1296782768.85.0.000422256440074.issue11110@psf.upfronthosting.co.za>
In-reply-to
Content
Pretty straight forward change, but could potentially cause a NULL pointer deref in a rare situation.

diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c
--- a/Modules/_sqlite/module.c
+++ b/Modules/_sqlite/module.c
@@ -329,7 +329,7 @@
         (pysqlite_statement_setup_types() < 0) ||
         (pysqlite_prepare_protocol_setup_types() < 0)
        ) {
-        Py_DECREF(module);
+        Py_XDECREF(module);
         return NULL;
     }
History
Date User Action Args
2011-02-04 01:26:08brett.cannonsetrecipients: + brett.cannon, georg.brandl
2011-02-04 01:26:08brett.cannonsetmessageid: <1296782768.85.0.000422256440074.issue11110@psf.upfronthosting.co.za>
2011-02-04 01:26:08brett.cannonlinkissue11110 messages
2011-02-04 01:26:08brett.cannoncreate