[Python-3000-checkins] r66831 - in python/branches/py3k: Misc/NEWS Objects/moduleobject.c
martin.v.loewis
python-3000-checkins at python.org
Tue Oct 7 15:16:29 CEST 2008
Author: martin.v.loewis
Date: Tue Oct 7 15:16:28 2008
New Revision: 66831
Log:
Issue #3740: Null-initialize module state.
Modified:
python/branches/py3k/Misc/NEWS
python/branches/py3k/Objects/moduleobject.c
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Tue Oct 7 15:16:28 2008
@@ -15,6 +15,8 @@
Core and Builtins
-----------------
+- Issue #3740: Null-initialize module state.
+
- Issue #3946: PyObject_CheckReadBuffer crashed on a memoryview object.
- Issue #1688: On Windows, the input() prompt was not correctly displayed if it
Modified: python/branches/py3k/Objects/moduleobject.c
==============================================================================
--- python/branches/py3k/Objects/moduleobject.c (original)
+++ python/branches/py3k/Objects/moduleobject.c Tue Oct 7 15:16:28 2008
@@ -113,6 +113,7 @@
Py_DECREF(m);
return NULL;
}
+ memset(m->md_state, 0, module->m_size);
}
d = PyModule_GetDict((PyObject*)m);
More information about the Python-3000-checkins
mailing list