summaryrefslogtreecommitdiffstats
path: root/Python/dynload_win.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-07-06 17:12:16 (GMT)
committerGitHub <noreply@github.com>2020-07-06 17:12:16 (GMT)
commitaa7f7756149a10c64d01f583b71e91814db886ab (patch)
tree2423c988772967d5090089f00550749ecde9b02d /Python/dynload_win.c
parent6790f9badda47c7aa0fe4b0b5f090d6ca0c477d5 (diff)
downloadcpython-aa7f7756149a10c64d01f583b71e91814db886ab.zip
cpython-aa7f7756149a10c64d01f583b71e91814db886ab.tar.gz
cpython-aa7f7756149a10c64d01f583b71e91814db886ab.tar.bz2
bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded (GH-21297) (GH-21352)
Also enables using debug build of `python3_d.dll` Reference: CVE-2020-15523 (cherry picked from commit dcbaa1b49cd9062fb9ba2b9d49555ac6cd8c60b5) Co-authored-by: Steve Dower <steve.dower@python.org>
Diffstat (limited to 'Python/dynload_win.c')
-rw-r--r--Python/dynload_win.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/dynload_win.c b/Python/dynload_win.c
index 6deba11..4896c6d 100644
--- a/Python/dynload_win.c
+++ b/Python/dynload_win.c
@@ -174,9 +174,7 @@ dl_funcptr _PyImport_FindSharedFuncptrWindows(const char *prefix,
char funcname[258], *import_python;
const wchar_t *wpathname;
-#ifndef _DEBUG
_Py_CheckPython3();
-#endif
wpathname = _PyUnicode_AsUnicode(pathname);
if (wpathname == NULL)