[issue31291] zipimport.zipimporter.get_data() crashes when path.replace() returns a non-str
Serhiy Storchaka
report at bugs.python.org
Tue Aug 29 00:10:45 EDT 2017
Serhiy Storchaka added the comment:
Oren already fixed several similar problems and he is aware of difference between a crash and an exception.
The problem is Windows specific. The current code uses Unicode C API with the result of calling the replace method. This can cause a segfault (or may be an assertion failure in debug build).
The proposed solution LGTM. It undermines duck-typing, but I think this doesn't break any existing code. The duck-typing was not intentional and is Windows-only.
----------
components: +Extension Modules -Interpreter Core
nosy: +serhiy.storchaka
stage: -> patch review
versions: +Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31291>
_______________________________________
More information about the Python-bugs-list
mailing list