Skip to content

Commit 70b72f0

Browse files
Fixed possible abort in ceval loop if _PyUnicode_FromId() fails.
Every opcode should end with DISPATCH() or goto error.
1 parent eb20fca commit 70b72f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Python/ceval.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2196,7 +2196,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
21962196
else {
21972197
PyObject *build_class_str = _PyUnicode_FromId(&PyId___build_class__);
21982198
if (build_class_str == NULL)
2199-
break;
2199+
goto error;
22002200
bc = PyObject_GetItem(f->f_builtins, build_class_str);
22012201
if (bc == NULL) {
22022202
if (PyErr_ExceptionMatches(PyExc_KeyError))

0 commit comments

Comments
 (0)