diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2014-03-23 21:55:40 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2014-03-23 21:55:40 (GMT) |
commit | 08eae43e2a0df1a0e3208adf438423945a854947 (patch) | |
tree | ac723bcf39365af9799e5cc4df7c77a01a690540 | |
parent | e1b6f97daedcfab29c1139ddb8c41292cd7de472 (diff) | |
parent | 8c6f8dc527d875f5b31f90925a9f61de7c351482 (diff) | |
download | cpython-08eae43e2a0df1a0e3208adf438423945a854947.zip cpython-08eae43e2a0df1a0e3208adf438423945a854947.tar.gz cpython-08eae43e2a0df1a0e3208adf438423945a854947.tar.bz2 |
Issue #19537: Fix PyUnicode_DATA() alignment under m68k. Patch by Andreas Schwab.
-rw-r--r-- | Include/unicodeobject.h | 3 | ||||
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index c088a0f..faa53d6 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -343,6 +343,9 @@ typedef struct { the data pointer is filled out. The bit is redundant, and helps to minimize the test in PyUnicode_IS_READY(). */ unsigned int ready:1; + /* Padding to ensure that PyUnicode_DATA() is always aligned to + 4 bytes (see issue #19537 on m68k). */ + unsigned int :24; } state; wchar_t *wstr; /* wchar_t representation (null-terminated) */ } PyASCIIObject; @@ -1171,6 +1171,7 @@ Robin Schreiber Chad J. Schroeder Christian Schubert Sam Schulenburg +Andreas Schwab Stefan Schwarzer Dietmar Schwertberger Federico Schwindt @@ -10,6 +10,9 @@ Release date: TBA Core and Builtins ----------------- +- Issue #19537: Fix PyUnicode_DATA() alignment under m68k. Patch by + Andreas Schwab. + - Issue #20929: Add a type cast to avoid shifting a negative number. - Issue #20731: Properly position in source code files even if they |