[Python-checkins] [python/cpython] 083490: [3.6] bpo-13617: Reject embedded null characters i...
GitHub
noreply at github.com
Wed Jun 28 02:27:36 EDT 2017
Branch: refs/heads/3.6
Home: https://github.com/python/cpython
Commit: 0834905d9b61291b1fc5e05a1ffbc69de9c9379f
https://github.com/python/cpython/commit/0834905d9b61291b1fc5e05a1ffbc69de9c9379f
Author: Serhiy Storchaka <storchaka at gmail.com>
Date: 2017-06-28 (Wed, 28 Jun 2017)
Changed paths:
M Include/unicodeobject.h
M Lib/ctypes/test/test_loading.py
M Lib/test/test_builtin.py
M Lib/test/test_curses.py
M Lib/test/test_grp.py
M Lib/test/test_imp.py
M Lib/test/test_locale.py
M Lib/test/test_time.py
M Lib/test/test_winsound.py
M Modules/_ctypes/callproc.c
M Modules/_cursesmodule.c
M Modules/_io/fileio.c
M Modules/_localemodule.c
M Modules/grpmodule.c
M Modules/nismodule.c
M Modules/posixmodule.c
M Modules/pwdmodule.c
M Modules/spwdmodule.c
M Objects/unicodeobject.c
M PC/_msi.c
M Python/dynload_win.c
M Python/fileutils.c
Log Message:
-----------
[3.6] bpo-13617: Reject embedded null characters in wchar* strings. (GH-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 f7eae0adfcd4c50034281b2c69f461b43b68db84)
More information about the Python-checkins
mailing list