Commit 660d8405 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Fixed possible abort in ceval loop if _PyUnicode_FromId() fails.

Every opcode should end with DISPATCH() or goto error.
parent 2d93f6c7
......@@ -2196,7 +2196,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
else {
PyObject *build_class_str = _PyUnicode_FromId(&PyId___build_class__);
if (build_class_str == NULL)
break;
goto error;
bc = PyObject_GetItem(f->f_builtins, build_class_str);
if (bc == NULL) {
if (PyErr_ExceptionMatches(PyExc_KeyError))
......
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