mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Issue #19437: Fix r_object() of marshal module, handle r_byte() failure for
TYPE_SMALL_TUPLE
This commit is contained in:
parent
763b0d19c9
commit
b1b7b1834b
1 changed files with 2 additions and 0 deletions
|
@ -1101,6 +1101,8 @@ r_object(RFILE *p)
|
|||
|
||||
case TYPE_SMALL_TUPLE:
|
||||
n = (unsigned char) r_byte(p);
|
||||
if (PyErr_Occurred())
|
||||
break;
|
||||
goto _read_tuple;
|
||||
case TYPE_TUPLE:
|
||||
n = r_long(p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue