[3.14] gh-149816: Fix UAF in Modules/_pickle.c (GH-150024) · python/cpython@758eb91 · GitHub
Skip to content

Commit 758eb91

Browse files
alexkatsgpshead
authored andcommitted
[3.14] gh-149816: Fix UAF in Modules/_pickle.c (GH-150024)
(cherry picked from commit d095ceb) Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com> Co-authored-by: Alexey Katsman <alex2007508@gmail.com>
1 parent c628cd7 commit 758eb91

3 files changed

Lines changed: 57 additions & 7 deletions

File tree

Lib/test/test_free_threading/test_pickle.py

Lines changed: 34 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix a potential use after free condition in :func:`pickle.dumps` in free-threaded
2+
mode when serializing lists.

Modules/_pickle.c

Lines changed: 21 additions & 7 deletions

0 commit comments

Comments
 (0)