Skip to content

[3.5] bpo-13617: Reject embedded null characters in wchar* strings. (GH-2302) #2463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 28, 2017

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-storchaka serhiy-storchaka added the type-bug An unexpected behavior, bug, or error label Jun 28, 2017
@serhiy-storchaka serhiy-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-storchaka serhiy-storchaka merged commit 54ba940 into python:3.5 Jun 28, 2017
@serhiy-storchaka serhiy-storchaka deleted the backport-f7eae0a-3.5 branch June 28, 2017 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants