Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7a26534

Browse files
committed
Add a missing "rf.depth = 0;" to marshal_load().
Reported by Joe Smith. This makes the CYGWIN tests pass; it's a miracle it didn't fail on other platforms. Seems like it was accidentally dropped (maybe a merge artifact?).
1 parent 447d33e commit 7a26534

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Python/marshal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,7 @@ marshal_load(PyObject *self, PyObject *f)
11811181
return NULL;
11821182
}
11831183
rf.strings = PyList_New(0);
1184+
rf.depth = 0;
11841185
result = read_object(&rf);
11851186
Py_DECREF(rf.strings);
11861187
Py_DECREF(data);

0 commit comments

Comments
 (0)