bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). by serhiy-storchaka · Pull Request #2285 · python/cpython
Raise a ValueError if the second argument is NULL and the wchar_t\* string contains null characters.
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request
Jun 27, 2017…ing(). (pythonGH-2285) Raise a ValueError if the second argument is NULL and the wchar_t\* string contains null characters.. (cherry picked from commit e613e6a)
serhiy-storchaka added a commit that referenced this pull request
Jun 27, 2017serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request
Jun 27, 2017…harString(). (pythonGH-2285) (pythonGH-2443) Raise a ValueError if the second argument is NULL and the wchar_t\* string contains null characters.. (cherry picked from commit e613e6a). (cherry picked from commit 0edffa3)
serhiy-storchaka added a commit that referenced this pull request
Jun 27, 2017…ng(). (GH-2285) (GH-2443) (#2448) And use it instead of PyUnicode_AsWideCharString() if appropriate. _PyUnicode_AsWideCharString(unicode) is like PyUnicode_AsWideCharString(unicode, NULL), but raises a ValueError if the wchar_t* string contains null characters. (cherry picked from commit e613e6a). (cherry picked from commit 0edffa3)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters