diff options
author | Miss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-10-14 09:09:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 09:09:44 (GMT) |
commit | 391a544f2a52673f6630c672e89840fd6ac36723 (patch) | |
tree | 06759ba79e72debd3425d2f0d4111f1bdd60d204 /Python/dynload_shlib.c | |
parent | 881a13cad534cf3fe4474579c22235a15d3ba27b (diff) | |
download | cpython-391a544f2a52673f6630c672e89840fd6ac36723.zip cpython-391a544f2a52673f6630c672e89840fd6ac36723.tar.gz cpython-391a544f2a52673f6630c672e89840fd6ac36723.tar.bz2 |
bpo-41993: Fix possible issues in remove_module() (GH-22631) (GH-22647)
* PyMapping_HasKey() is not safe because it silences all exceptions and can return incorrect result.
* Informative exceptions from PyMapping_DelItem() are overridden with RuntimeError and
the original exception raised before calling remove_module() is lost.
* There is a race condition between PyMapping_HasKey() and PyMapping_DelItem().
(cherry picked from commit 8287aadb75f6bd0154996424819334cd3839707c)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/dynload_shlib.c')
0 files changed, 0 insertions, 0 deletions