Backport rev 55450:

SF bug #1721309: Clear data so random memory does not get freed.
This commit is contained in:
Neal Norwitz 2007-05-19 03:53:33 +00:00
parent cf0fab2686
commit f86ae691d3
2 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,12 @@ Library
run in verbose mode.
Extension Modules
-----------------
- Bug #1721309: prevent bsddb module from freeing random memory.
Documentation
-------------

View File

@ -1713,6 +1713,7 @@ DB_get_both(DBObject* self, PyObject* args, PyObject* kwargs)
return NULL;
}
CLEAR_DBT(data);
flags |= DB_GET_BOTH;
if (CHECK_DBFLAG(self, DB_THREAD)) {