mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fixed possible abort in ceval loop if _PyUnicode_FromId() fails.
Every opcode should end with DISPATCH() or goto error.
This commit is contained in:
parent
eb20fcae14
commit
70b72f0f96
1 changed files with 1 additions and 1 deletions
|
@ -2196,7 +2196,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
|
||||||
else {
|
else {
|
||||||
PyObject *build_class_str = _PyUnicode_FromId(&PyId___build_class__);
|
PyObject *build_class_str = _PyUnicode_FromId(&PyId___build_class__);
|
||||||
if (build_class_str == NULL)
|
if (build_class_str == NULL)
|
||||||
break;
|
goto error;
|
||||||
bc = PyObject_GetItem(f->f_builtins, build_class_str);
|
bc = PyObject_GetItem(f->f_builtins, build_class_str);
|
||||||
if (bc == NULL) {
|
if (bc == NULL) {
|
||||||
if (PyErr_ExceptionMatches(PyExc_KeyError))
|
if (PyErr_ExceptionMatches(PyExc_KeyError))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue