mirror of https://github.com/python/cpython
Revert bogus change committed in 46432 to this file.
This commit is contained in:
parent
e0df762719
commit
2e3f6b77d5
|
@ -2376,7 +2376,6 @@ 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. */
|
||||
|
|
Loading…
Reference in New Issue