Author xiang.zhang
Recipients brett.cannon, ethan.furman, xiang.zhang
Date 2016-07-14.09:28:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
When any exception is raised inside __fspath__, operations involving it like os.fspath, open are certain to crash.

>>> import os
>>> class Test:
...     def __fspath__(self):
...             raise RuntimeError
>>> os.fspath(Test())
Segmentation fault (core dumped)

Attach a patch to fix this.
Date User Action Args
2016-07-14 09:28:13xiang.zhangsetrecipients: + xiang.zhang, brett.cannon, ethan.furman
2016-07-14 09:28:13xiang.zhangsetmessageid: <>
2016-07-14 09:28:13xiang.zhanglinkissue27512 messages
2016-07-14 09:28:13xiang.zhangcreate