Commit 1b92d846 authored by Victor Stinner's avatar Victor Stinner

Issue #19437: Fix r_object() of marshal module, handle r_byte() failure for

TYPE_SMALL_TUPLE
parent 4b941b9c
...@@ -1101,6 +1101,8 @@ r_object(RFILE *p) ...@@ -1101,6 +1101,8 @@ r_object(RFILE *p)
case TYPE_SMALL_TUPLE: case TYPE_SMALL_TUPLE:
n = (unsigned char) r_byte(p); n = (unsigned char) r_byte(p);
if (PyErr_Occurred())
break;
goto _read_tuple; goto _read_tuple;
case TYPE_TUPLE: case TYPE_TUPLE:
n = r_long(p); n = r_long(p);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment