[Python-checkins] cpython (merge default -> default): Merge heads
serhiy.storchaka
python-checkins at python.org
Sun Oct 13 18:20:25 CEST 2013
http://hg.python.org/cpython/rev/85d9ec7ed389
changeset: 86315:85d9ec7ed389
parent: 86313:781deb421ad0
parent: 86310:d6d340549c80
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sun Oct 13 19:17:46 2013 +0300
summary:
Merge heads
files:
Python/marshal.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Python/marshal.c b/Python/marshal.c
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -1297,6 +1297,8 @@
if (name == NULL)
goto code_error;
firstlineno = (int)r_long(p);
+ if (firstlineno == -1 && PyErr_Occurred())
+ break;
lnotab = r_object(p);
if (lnotab == NULL)
goto code_error;
@@ -1326,6 +1328,8 @@
case TYPE_REF:
n = r_long(p);
if (n < 0 || n >= PyList_GET_SIZE(p->refs)) {
+ if (n == -1 && PyErr_Occurred())
+ break;
PyErr_SetString(PyExc_ValueError, "bad marshal data (invalid reference)");
break;
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list