-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
In the load_build
function of Modules/_pickle.c
, if setting a value in a dictionary fails, the dict
variable does not have its reference counter decreased.
Pull request was made at #126990
CPython versions tested on:
3.11
Operating systems tested on:
Linux
Linked PRs
- gh-126991: Fix reference leak in _pickle.c's load_build #126990
- [3.13] gh-126991: Fix reference leak in loading pickle's opcode BUILD (GH-126990) #127018
- [3.12] gh-126991: Fix reference leak in loading pickle's opcode BUILD (GH-126990) #127019
- gh-126991: Add tests for unpickling bad object state #127031
- [3.13] gh-126991: Add tests for unpickling bad object state (GH-127031) #127063
- [3.12] gh-126991: Add tests for unpickling bad object state (GH-127031) #127064
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error