[3.6] bpo-13617: Reject embedded null characters in wchar* strings. (GH-2302) by serhiy-storchaka · Pull Request #2462 · python/cpython
Based on patch by Victor Stinner.
Add private C API function _PyUnicode_AsUnicode() which is similar to
PyUnicode_AsUnicode(), but checks for null characters..
(cherry picked from commit f7eae0a)