summaryrefslogtreecommitdiffstats
path: root/Python/context.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-04 13:19:02 (GMT)
committerGitHub <noreply@github.com>2020-06-04 13:19:02 (GMT)
commit232dda6cbc10860328a83517a6e3ea238ff4147f (patch)
tree773df4853280b9bc72ef7e25f521ea90cc3129c7 /Python/context.c
parentb022e5cffbd3ff51ae361cf80f2a3b660be8b1ee (diff)
downloadcpython-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