[Python-checkins] cpython: Issue #19219: retval may be used uninitialized value
christian.heimes
python-checkins at python.org
Sun Oct 13 02:29:22 CEST 2013
http://hg.python.org/cpython/rev/2a2b339b6b59
changeset: 86278:2a2b339b6b59
user: Christian Heimes <christian at cheimes.de>
date: Sun Oct 13 02:29:06 2013 +0200
summary:
Issue #19219: retval may be used uninitialized value
CID 486239: Uninitialized pointer read (UNINIT)
files:
Python/marshal.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Python/marshal.c b/Python/marshal.c
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -841,7 +841,7 @@
long i, n;
int type, code = r_byte(p);
int flag, is_interned = 0;
- PyObject *retval;
+ PyObject *retval = NULL;
if (code == EOF) {
PyErr_SetString(PyExc_EOFError,
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list