mirror of
https://github.com/python/cpython.git
synced 2025-09-14 04:37:29 +00:00
Patch #1488312, Fix memory alignment problem on SPARC in unicode. Will backport
This commit is contained in:
parent
373f0a718c
commit
1004a5339a
3 changed files with 4 additions and 1 deletions
|
@ -2313,7 +2313,7 @@ PyObject *_PyUnicode_DecodeUnicodeInternal(const char *s,
|
|||
end = s + size;
|
||||
|
||||
while (s < end) {
|
||||
*p = *(Py_UNICODE *)s;
|
||||
memcpy(p, s, sizeof(Py_UNICODE));
|
||||
/* We have to sanity check the raw data, otherwise doom looms for
|
||||
some malformed UCS-4 data. */
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue