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 16:52:13 (GMT)
committerGitHub <noreply@github.com>2020-07-06 16:52:13 (GMT)
commit4981fe36c7477303de830e8dca929a02caaaffe4 (patch)
tree9cc8650723264730f4a58ac02126c824f0f54275 /Python/dynload_win.c
parent97558d6b08a656eae209d49b206f703cee0359a2 (diff)
downloadcpython-4981fe36c7477303de830e8dca929a02caaaffe4.zip
cpython-4981fe36c7477303de830e8dca929a02caaaffe4.tar.gz
cpython-4981fe36c7477303de830e8dca929a02caaaffe4.tar.bz2
bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded (GH-21297)
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 2bf3384..8431c5b 100644
--- a/Python/dynload_win.c
+++ b/Python/dynload_win.c
@@ -168,9 +168,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)