]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-116180: Check the globals argument in PyRun_* C API (GH-116637)
authorNGRsoftlab <78017794+NGRsoftlab@users.noreply.github.com>
Thu, 2 May 2024 13:43:03 +0000 (16:43 +0300)
committerGitHub <noreply@github.com>
Thu, 2 May 2024 13:43:03 +0000 (16:43 +0300)
commit7d2ffada0a6490e6839697f729bcd80380e9f561
tree2406de9015978d0b64b082e17d711677c1743b0d
parent7c97dc8c9594c71bd3d1f69758a27de45f57e4c3
gh-116180: Check the globals argument in PyRun_* C API (GH-116637)

It used to crash when passing NULL or non-dict as globals.
Now it sets a SystemError.
Lib/test/test_capi/test_run.py
Python/pythonrun.c