summaryrefslogtreecommitdiff
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-10-11 16:51:07 +0300
committerGitHub <noreply@github.com>2020-10-11 16:51:07 +0300
commit8287aadb75f6bd0154996424819334cd3839707c (patch)
treea8c1bdba620f33bd02e9558fe2a8bae6df69d37b /Python/fileutils.c
parentfa1d83db62a545580d9a1a585b2c1fb55961a5c3 (diff)
downloadcpython-git-8287aadb75f6bd0154996424819334cd3839707c.tar.gz
bpo-41993: Fix possible issues in remove_module() (GH-22631)
* 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().
Diffstat (limited to 'Python/fileutils.c')
0 files changed, 0 insertions, 0 deletions