[proxy] github.com← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). by serhiy-storchaka · Pull Request #2285 · python/cpython

serhiy-storchaka

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, 2017
…ing(). (GH-2285) (#2443)

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 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)