Commit 277cbd6
committed
gh-151815: Fix crash in t-string iterator on partial construction under OOM
Initialize templateiter fields to NULL immediately after PyObject_GC_New so
tp_clear/dealloc on the error path does not clear garbage pointers
(OOM-0024 / gh-151763).1 parent f5f5059 commit 277cbd6
2 files changed
Lines changed: 4 additions & 1 deletion
File tree
- Misc/NEWS.d/next/Core_and_Builtins
- Objects
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
229 | 232 | | |
230 | 233 | | |
231 | 234 | | |
| |||
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
245 | | - | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
| |||
0 commit comments