]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-105375: Explicitly initialise all {Pickler,Unpickler}Object fields (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 12 Jun 2023 22:12:17 +0000 (15:12 -0700)
committerGitHub <noreply@github.com>
Mon, 12 Jun 2023 22:12:17 +0000 (22:12 +0000)
commit017b9595d4060521f93804d5dd555b6cd6585578
tree1aaadfda3fdb598627b66658aaa082bd34b1c9e3
parent77bdeebdda3358186df6e6ba900c562ddaefaa5c
[3.12] gh-105375: Explicitly initialise all {Pickler,Unpickler}Object fields (GH-105686) (#105710)

All fields must be explicitly initialised to prevent manipulation of
uninitialised fields in dealloc.

Align initialisation order with the layout of the object structs.

(cherry picked from commit ca3cc4b95d66f7527ebe0ba4cdb1907082d9bfc8)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Modules/_pickle.c