summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-08 21:12:46 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-08 21:12:46 (GMT)
commit70b72f0f96d0a78e7cb154ae64356c82d06ac901 (patch)
treea656163725e5fd0352d1b66582f1a9ab1fe95236 /Python
parenteb20fcae144c70f6210872bdb699731ba66fb9f8 (diff)
downloadcpython-70b72f0f96d0a78e7cb154ae64356c82d06ac901.zip
cpython-70b72f0f96d0a78e7cb154ae64356c82d06ac901.tar.gz
cpython-70b72f0f96d0a78e7cb154ae64356c82d06ac901.tar.bz2
Fixed possible abort in ceval loop if _PyUnicode_FromId() fails.
Every opcode should end with DISPATCH() or goto error.
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index e9d0cbb..7b40518 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -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))