Staging
v0.5.1
https://github.com/python/cpython
Revision 54ba940abc2fabb94fede46dfad80f8ac15632a3 authored by Serhiy Storchaka on 28 June 2017, 07:31:00 UTC, committed by GitHub on 28 June 2017, 07:31:00 UTC
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)
1 parent 9dff523
Raw File
Tip revision: 54ba940abc2fabb94fede46dfad80f8ac15632a3 authored by Serhiy Storchaka on 28 June 2017, 07:31:00 UTC
[3.5] bpo-13617: Reject embedded null characters in wchar* strings. (GH-2302) (#2463)
Tip revision: 54ba940
.gitattributes
# Binary data types
*.aif binary
*.aifc binary
*.aiff binary
*.au binary
*.bmp binary
*.exe binary
*.icns binary
*.gif binary
*.ico binary
*.jpg binary
*.pck binary
*.png binary
*.psd binary
*.tar binary
*.wav binary
*.whl binary
*.zip binary

# Specific binary files
Lib/test/sndhdrdata/sndhdr.* binary

# Text files that should not be subject to eol conversion
Lib/test/cjkencodings/* -text
Lib/test/decimaltestdata/*.decTest -text
Lib/test/test_email/data/*.txt -text
Lib/test/xmltestdata/* -text
Lib/test/coding20731.py -text

# Special files in third party code
Modules/zlib/zlib.map -text

# CRLF files
*.bat text eol=crlf
*.ps1 text eol=crlf
*.sln text eol=crlf
*.vcxproj* text eol=crlf
*.props text eol=crlf
*.proj text eol=crlf
PCbuild/readme.txt text eol=crlf
PC/readme.txt text eol=crlf
back to top