Message240435
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. |
|
Date |
User |
Action |
Args |
2015-04-10 16:43:52 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner |
2015-04-10 16:43:52 | serhiy.storchaka | set | messageid: <1428684232.77.0.530667773352.issue23908@psf.upfronthosting.co.za> |
2015-04-10 16:43:52 | serhiy.storchaka | link | issue23908 messages |
2015-04-10 16:43:52 | serhiy.storchaka | create | |
|