[issue29778] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

Steve Dower report at bugs.python.org
Mon Jun 29 12:02:57 EDT 2020


Steve Dower <steve.dower at python.org> added the comment:

Sorry, I take that back. Earlier versions would indeed skip initialization in some cases.

I propose we deprecate the dll_path field in PathConfig and just get the path directly in the three places it's necessary. The path calculations have security exposure, so let's just avoid trying to manage additional state around it unnecessarily.

I'll work on a patch this week unless someone else gets to it first.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue29778>
_______________________________________


More information about the Python-bugs-list mailing list