]> granicus.if.org Git - python/commit
bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). (#2285)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 27 Jun 2017 13:03:14 +0000 (16:03 +0300)
committerGitHub <noreply@github.com>
Tue, 27 Jun 2017 13:03:14 +0000 (16:03 +0300)
commite613e6add5f07ff6aad5802924596b631b707d2a
tree8e3a53cf8a0851c17a2dc9bcbd975c2bec5ff846
parent65474b9d7a230943d4d3f1d7d51f77bb141240f0
bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). (#2285)

Raise a ValueError if the second argument is NULL and the wchar_t\*
string contains null characters.
Doc/c-api/unicode.rst
Doc/whatsnew/3.7.rst
Lib/ctypes/test/test_slicing.py
Misc/NEWS
Modules/_io/winconsoleio.c
Objects/unicodeobject.c