This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 serhiy.storchaka
收信人 serhiy.storchaka, vstinner
日期 2015-04-10.16:43:52
SpamBayes Score -1.0
Marked as misclassified
Message-id <1428684232.77.0.530667773352.issue23908@psf.upfronthosting.co.za>
In-reply-to
内容
Proposed patch adds checks for null character in unicode path arguments of os functions on Windows. Null character is already tested on Unix, in bytes paths on Windows, and in unicode argument of _io.FileIO.

Removed private function _PyUnicode_HasNULChars(), because it is used only in two places and inlined code is simpler and more efficient.

The patch doesn't contain tests because I can't test them. But they should be simple, just pass a path with null character to os function.
历史
日期 用户 动作 参数
2015-04-10 16:43:52serhiy.storchaka修改recipients: + serhiy.storchaka, vstinner
2015-04-10 16:43:52serhiy.storchaka修改messageid: <1428684232.77.0.530667773352.issue23908@psf.upfronthosting.co.za>
2015-04-10 16:43:52serhiy.storchaka链接issue23908 messages
2015-04-10 16:43:52serhiy.storchaka创建