Repository navigation
Commit 25692b4
committed
Fix UAF in
Callback can free an object resulting in UAF if
we have relied on the object for visiting the next
item in the chain.
Fix is to use `finalize_garbage` approach of walking
the object gc generation list directly maintaing and
moving it into a tempoary list before calling callbackvisit_generation
1 parent 036d309 commit 25692b4
3 files changed
Lines changed: 56 additions & 8 deletions
File tree
- Misc/NEWS.d/next/C_API
- Modules/_testcapi
- Python
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
274 | 310 | | |
275 | 311 | | |
276 | 312 | | |
| |||
369 | 405 | | |
370 | 406 | | |
371 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
372 | 411 | | |
373 | 412 | | |
374 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2164 | 2164 | | |
2165 | 2165 | | |
2166 | 2166 | | |
2167 | | - | |
2168 | | - | |
2169 | | - | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
2170 | 2176 | | |
| 2177 | + | |
2171 | 2178 | | |
2172 | | - | |
| 2179 | + | |
2173 | 2180 | | |
2174 | | - | |
2175 | | - | |
2176 | | - | |
2177 | 2181 | | |
2178 | | - | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
2179 | 2186 | | |
2180 | 2187 | | |
2181 | 2188 | | |
| |||
0 commit comments