diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-04 13:19:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 13:19:02 (GMT) |
commit | 232dda6cbc10860328a83517a6e3ea238ff4147f (patch) | |
tree | 773df4853280b9bc72ef7e25f521ea90cc3129c7 /Python/context.c | |
parent | b022e5cffbd3ff51ae361cf80f2a3b660be8b1ee (diff) | |
download | cpython-232dda6cbc10860328a83517a6e3ea238ff4147f.zip cpython-232dda6cbc10860328a83517a6e3ea238ff4147f.tar.gz cpython-232dda6cbc10860328a83517a6e3ea238ff4147f.tar.bz2 |
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.
Diffstat (limited to 'Python/context.c')
0 files changed, 0 insertions, 0 deletions