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.

Author serhiy.storchaka
Recipients serhiy.storchaka, vstinner
Date 2015-04-10.16:43:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428684232.77.0.530667773352.issue23908@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-04-10 16:43:52serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner
2015-04-10 16:43:52serhiy.storchakasetmessageid: <1428684232.77.0.530667773352.issue23908@psf.upfronthosting.co.za>
2015-04-10 16:43:52serhiy.storchakalinkissue23908 messages
2015-04-10 16:43:52serhiy.storchakacreate