Skip to content
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

[security] bpo-13617: Reject embedded null characters in wchar* strings. #2302

Merged
merged 19 commits into from
Jun 28, 2017

Conversation

serhiy-storchaka
Copy link
Member

Based on patch by Victor Stinner.

@serhiy-storchaka serhiy-storchaka added needs backport to 3.5 type-bug An unexpected behavior, bug, or error type-security A security issue labels Jun 20, 2017
@mention-bot
Copy link

@serhiy-storchaka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @loewis, @akuchling and @theller to be potential reviewers.

@vstinner vstinner changed the title bpo-13617: Reject embedded null characters in wchar* strings. [security] bpo-13617: Reject embedded null characters in wchar* strings. Jun 28, 2017
@serhiy-storchaka serhiy-storchaka merged commit f7eae0a into python:master Jun 28, 2017
@serhiy-storchaka serhiy-storchaka deleted the reject-null-wchars branch June 28, 2017 05:30
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Jun 28, 2017
… 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)
@bedevere-bot
Copy link

GH-2462 is a backport of this pull request to the 3.6 branch.

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Jun 28, 2017
… 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)
@bedevere-bot
Copy link

GH-2463 is a backport of this pull request to the 3.5 branch.

serhiy-storchaka added a commit that referenced this pull request Jun 28, 2017
…H-2302) (#2462)

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 added a commit that referenced this pull request Jun 28, 2017
…H-2302) (#2463)

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)
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 type-security A security issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants