Repository navigation
Commit 9348e13
* 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.
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent b71fadc commit 9348e13
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 | |
|---|---|---|---|
| |||
5106 | 5106 | | |
5107 | 5107 | | |
5108 | 5108 | | |
5109 | | - | |
| 5109 | + | |
5110 | 5110 | | |
5111 | 5111 | | |
5112 | 5112 | | |
| |||
5116 | 5116 | | |
5117 | 5117 | | |
5118 | 5118 | | |
5119 | | - | |
| 5119 | + | |
5120 | 5120 | | |
5121 | 5121 | | |
5122 | 5122 | | |
5123 | | - | |
| 5123 | + | |
5124 | 5124 | | |
5125 | 5125 | | |
5126 | 5126 | | |
5127 | 5127 | | |
5128 | 5128 | | |
5129 | 5129 | | |
5130 | 5130 | | |
5131 | | - | |
| 5131 | + | |
5132 | 5132 | | |
5133 | 5133 | | |
5134 | | - | |
| 5134 | + | |
5135 | 5135 | | |
5136 | 5136 | | |
5137 | 5137 | | |
| |||
5143 | 5143 | | |
5144 | 5144 | | |
5145 | 5145 | | |
5146 | | - | |
| 5146 | + | |
| 5147 | + | |
5147 | 5148 | | |
5148 | 5149 | | |
5149 | 5150 | | |
5150 | 5151 | | |
5151 | | - | |
| 5152 | + | |
5152 | 5153 | | |
5153 | 5154 | | |
5154 | 5155 | | |
5155 | 5156 | | |
5156 | 5157 | | |
5157 | 5158 | | |
5158 | 5159 | | |
5159 | | - | |
| 5160 | + | |
5160 | 5161 | | |
5161 | 5162 | | |
5162 | 5163 | | |
5163 | 5164 | | |
5164 | | - | |
5165 | | - | |
| 5165 | + | |
| 5166 | + | |
5166 | 5167 | | |
5167 | 5168 | | |
5168 | 5169 | | |
5169 | | - | |
| 5170 | + | |
5170 | 5171 | | |
5171 | 5172 | | |
5172 | 5173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments