Commit 4dd9d94
[3.13] pythongh-143004: Fix possible use-after-free in collections.Counter.update() (pythonGH-143044) (pythonGH-143167)
This happened when the Counter was mutated when incrementing
the value for an existing key.
(cherry picked from commit 86d9045)
Co-authored-by: kaushal trivedi <155625932+Kaushalt2004@users.noreply.github.com>1 parent e132893 commit 4dd9d94
3 files changed
Lines changed: 20 additions & 0 deletions
File tree
- Lib/test
- Misc/NEWS.d/next/Library
- Modules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2119 | 2119 | | |
2120 | 2120 | | |
2121 | 2121 | | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
2122 | 2135 | | |
2123 | 2136 | | |
2124 | 2137 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2549 | 2549 | | |
2550 | 2550 | | |
2551 | 2551 | | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
2552 | 2556 | | |
| 2557 | + | |
2553 | 2558 | | |
2554 | 2559 | | |
2555 | 2560 | | |
| |||
0 commit comments