Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ff3e5e37
Commit
ff3e5e37
authored
Oct 01, 2014
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unicode_aswidechar() for 4b unicode and 2b wchar_t (AIX).
parent
51c11622
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Misc/NEWS
Misc/NEWS
+6
-0
Objects/unicodeobject.c
Objects/unicodeobject.c
+1
-1
No files found.
Misc/NEWS
View file @
ff3e5e37
...
...
@@ -7,6 +7,12 @@ What's New in Python 3.2.6?
*Release date: TBD*
Core and Builtins
-----------------
- Issue #19529: Fix a potential crash in converting Unicode objects to wchar_t
when Py_UNICODE is 4 bytes but wchar_t is 2 bytes, for example on AIX.
Library
-------
...
...
Objects/unicodeobject.c
View file @
ff3e5e37
...
...
@@ -1267,7 +1267,7 @@ unicode_aswidechar(PyUnicodeObject *unicode,
Py_ssize_t
nchar
;
u
=
PyUnicode_AS_UNICODE
(
unicode
);
uend
=
u
+
PyUnicode_GET_SIZE
(
u
);
uend
=
u
+
PyUnicode_GET_SIZE
(
u
nicode
);
if
(
w
!=
NULL
)
{
worig
=
w
;
wend
=
w
+
size
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment