gh-154709: Fix out-of-bounds access in dict reverse iterator (GH-154721) · python/cpython@3fd36fa · GitHub
Skip to content

Commit 3fd36fa

Browse files
authored
gh-154709: Fix out-of-bounds access in dict reverse iterator (GH-154721)
1 parent a528a24 commit 3fd36fa

3 files changed

Lines changed: 27 additions & 1 deletion

File tree

Lib/test/test_dict.py

Lines changed: 21 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix an out-of-bounds access in reverse dictionary iterators when the
2+
underlying dictionary is cleared and modified after the iterator is created.

Objects/dictobject.c

Lines changed: 4 additions & 1 deletion

0 commit comments

Comments
 (0)