diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-20 07:12:28 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-20 07:12:28 (GMT) |
commit | 7e9d1d1a1b8ec4db9b9b6789b448c4202ab84b48 (patch) | |
tree | 0cecdabe5db216090cd9fb763bf3cd6c3b2165e3 /Objects | |
parent | e3037e114509913874a28746f5e05780919e909a (diff) | |
parent | 2b0d2007a1a51a15a67dc7297cf5e21c8767b563 (diff) | |
download | cpython-7e9d1d1a1b8ec4db9b9b6789b448c4202ab84b48.zip cpython-7e9d1d1a1b8ec4db9b9b6789b448c4202ab84b48.tar.gz cpython-7e9d1d1a1b8ec4db9b9b6789b448c4202ab84b48.tar.bz2 |
Issue #23908: os functions now reject paths with embedded null character
on Windows instead of silently truncate them.
Removed no longer used _PyUnicode_HasNULChars().
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 9611ed4..3225fb3 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -3607,21 +3607,6 @@ PyUnicode_DecodeFSDefaultAndSize(const char *s, Py_ssize_t size) int -_PyUnicode_HasNULChars(PyObject* str) -{ - Py_ssize_t pos; - - if (PyUnicode_READY(str) == -1) - return -1; - pos = findchar(PyUnicode_DATA(str), PyUnicode_KIND(str), - PyUnicode_GET_LENGTH(str), '\0', 1); - if (pos == -1) - return 0; - else - return 1; -} - -int PyUnicode_FSConverter(PyObject* arg, void* addr) { PyObject *output = NULL; |