[issue38020] os.path.realpath crashes in Windows Store package

Steve Dower report at bugs.python.org
Tue Sep 3 14:45:57 EDT 2019


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

I forgot to initialize the result object in readlink() on Windows, and so when we hit the failure path it returns garbage. Attempting to DECREF that garbage fails.

The call to readlink() fails in the Store app because sys.executable is not a readable link. It should fail in most cases anyway, but apparently outside of the app container the stack is NULL here.

----------

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


More information about the Python-bugs-list mailing list