Commit e7fcd912 authored by Victor Stinner's avatar Victor Stinner

Issue #18408: Fix marshal reader for Unicode strings: handle

PyUnicode_DecodeUTF8() failure (ex: MemoryError).
parent ec291453
......@@ -998,6 +998,10 @@ r_object(RFILE *p)
else {
v = PyUnicode_New(0, 0);
}
if (v == NULL) {
retval = NULL;
break;
}
if (type == TYPE_INTERNED)
PyUnicode_InternInPlace(&v);
retval = v;
......
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