Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

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)

… strings. (pythonGH-2302) 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)
@serhiy-storchakaserhiy-storchaka added the type-bug An unexpected behavior, bug, or error label Jun 28, 2017
@serhiy-storchakaserhiy-storchaka changed the title [3.5] [security] bpo-13617: Reject embedded null characters in wchar* strings. (GH-2302)[3.5] bpo-13617: Reject embedded null characters in wchar* strings. (GH-2302)Jun 28, 2017
@serhiy-storchakaserhiy-storchaka merged commit 54ba940 into python:3.5Jun 28, 2017
@serhiy-storchakaserhiy-storchaka deleted the backport-f7eae0a-3.5 branch June 28, 2017 07:31
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bugAn unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@serhiy-storchaka@the-knights-who-say-ni