commit | 232dda6cbc10860328a83517a6e3ea238ff4147f | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Thu Jun 04 15:19:02 2020 +0200 |
committer | GitHub <noreply@github.com> | Thu Jun 04 15:19:02 2020 +0200 |
tree | 773df4853280b9bc72ef7e25f521ea90cc3129c7 | |
parent | b022e5cffbd3ff51ae361cf80f2a3b660be8b1ee [diff] |
bpo-40679: Fix _PyEval_EvalCode() crash if qualname is NULL (GH-20615) If name is NULL, name is now set to co->co_name. If qualname is NULL, qualname is now set to name. qualname must not be NULL: it is used to build error messages. Cleanup also the code: declare variables where they are initialized. Rename "name" local variables to "varname" to avoid overriding "name" parameter.