| commit | 96d37dbcd23e65a7a57819aeced9034296ef747e | [log] [tgz] |
|---|---|---|
| author | Fish <ltfish@users.noreply.github.com> | Thu Feb 07 14:51:59 2019 -0500 |
| committer | Antoine Pitrou <pitrou@free.fr> | Thu Feb 07 19:51:59 2019 +0000 |
| tree | f8a5c4d702642dbc6da04a85d818ae7689d5a1db | |
| parent | df8d2cde63c865446468351f8f648e1c7bd45109 [diff] |
bpo-35615: Fix crashes when copying a Weak{Key,Value}Dictionary. (GH-11384)
Protect dict iterations by wrapping them with _IterationGuard in the
following methods:
- WeakValueDictionary.copy()
- WeakValueDictionary.__deepcopy__()
- WeakKeyDictionary.copy()
- WeakKeyDictionary.__deepcopy__()