Repository navigation
Commit d98f2cb
authored
On free-threaded builds, list.__sizeof__() reads an allocation header through an atomically loaded storage pointer. The list's owner can resize and free that storage between the load and the header read, producing invalid size data or an invalid memory read. Hold the list lock while inspecting the allocation. Backport to 3.15 and 3.14.
1 parent 4df47d8 commit d98f2cb
2 files changed
Lines changed: 4 additions & 1 deletion
File tree
- Misc/NEWS.d/next/Core_and_Builtins
- Objects
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3658 | 3658 | | |
3659 | 3659 | | |
3660 | 3660 | | |
3661 | | - | |
| 3661 | + | |
| 3662 | + | |
3662 | 3663 | | |
3663 | 3664 | | |
3664 | 3665 | | |
| 3666 | + | |
3665 | 3667 | | |
3666 | 3668 | | |
3667 | 3669 | | |
| |||
0 commit comments