Repository navigation
Commit ae13f1b
* bpo-44170: Fix UnicodeDecodeError with multibyte utf8 characters in ShareableList
* Round up the allocated size instead of rejecting the exact fit
Allocating one extra alignment block for a value whose encoded size is
a multiple of the alignment made a copy of the list wider than the
original. Round the size up instead, so that it is the same for the
same value, and keep allowing a value which fills the slot exactly:
rejecting it broke setting an 8-byte string in a slot of an integer.
---------
(cherry picked from commit 9348e13)
Co-authored-by: Jun <junnplus@gmail.com>
1 parent 6d18fc9 commit ae13f1b
3 files changed
Lines changed: 23 additions & 15 deletions
File tree
- Lib
- multiprocessing
- test
- Misc/NEWS.d/next/Library
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
308 | 315 | | |
309 | 316 | | |
310 | 317 | | |
311 | 318 | | |
312 | 319 | | |
313 | 320 | | |
314 | 321 | | |
315 | | - | |
| 322 | + | |
316 | 323 | | |
317 | 324 | | |
318 | 325 | | |
| |||
353 | 360 | | |
354 | 361 | | |
355 | 362 | | |
356 | | - | |
| 363 | + | |
357 | 364 | | |
358 | 365 | | |
359 | 366 | | |
| |||
463 | 470 | | |
464 | 471 | | |
465 | 472 | | |
466 | | - | |
467 | | - | |
| 473 | + | |
468 | 474 | | |
469 | 475 | | |
470 | 476 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4810 | 4810 | | |
4811 | 4811 | | |
4812 | 4812 | | |
4813 | | - | |
| 4813 | + | |
4814 | 4814 | | |
4815 | 4815 | | |
4816 | 4816 | | |
| |||
4820 | 4820 | | |
4821 | 4821 | | |
4822 | 4822 | | |
4823 | | - | |
| 4823 | + | |
4824 | 4824 | | |
4825 | 4825 | | |
4826 | 4826 | | |
4827 | | - | |
| 4827 | + | |
4828 | 4828 | | |
4829 | 4829 | | |
4830 | 4830 | | |
4831 | 4831 | | |
4832 | 4832 | | |
4833 | 4833 | | |
4834 | 4834 | | |
4835 | | - | |
| 4835 | + | |
4836 | 4836 | | |
4837 | 4837 | | |
4838 | | - | |
| 4838 | + | |
4839 | 4839 | | |
4840 | 4840 | | |
4841 | 4841 | | |
| |||
4847 | 4847 | | |
4848 | 4848 | | |
4849 | 4849 | | |
4850 | | - | |
| 4850 | + | |
| 4851 | + | |
4851 | 4852 | | |
4852 | 4853 | | |
4853 | 4854 | | |
4854 | 4855 | | |
4855 | | - | |
| 4856 | + | |
4856 | 4857 | | |
4857 | 4858 | | |
4858 | 4859 | | |
4859 | 4860 | | |
4860 | 4861 | | |
4861 | 4862 | | |
4862 | 4863 | | |
4863 | | - | |
| 4864 | + | |
4864 | 4865 | | |
4865 | 4866 | | |
4866 | 4867 | | |
4867 | 4868 | | |
4868 | | - | |
4869 | | - | |
| 4869 | + | |
| 4870 | + | |
4870 | 4871 | | |
4871 | 4872 | | |
4872 | 4873 | | |
4873 | | - | |
| 4874 | + | |
4874 | 4875 | | |
4875 | 4876 | | |
4876 | 4877 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments