]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118746: Fix crash in frame_getlocals and _PyFrame_GetLocals (#118748)
authorTian Gao <gaogaotiantian@hotmail.com>
Wed, 8 May 2024 00:48:05 +0000 (17:48 -0700)
committerGitHub <noreply@github.com>
Wed, 8 May 2024 00:48:05 +0000 (17:48 -0700)
commite7aec8713f84e90b20c9baae6b7a91d87f327ff0
treec6619034e5a7551ba84d3c7db39167785167e850
parent2f0a338be66e276a700f86af51d5ef54a138cbfb
gh-118746: Fix crash in frame_getlocals and _PyFrame_GetLocals (#118748)

We don't know how to create an unoptimized frame with f_locals == NULL,
but they are seen in the wild, and this fixes the crash.
Objects/frameobject.c