]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-105375: Explicitly initialise all {Pickler,Unpickler}Object fields (#105686...
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Tue, 13 Jun 2023 06:50:00 +0000 (08:50 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Jun 2023 06:50:00 +0000 (06:50 +0000)
commit36c393c044f35c83a17301f367db1cb6af0d9cd0
treedc1a0666f5199c2a6f878ecc26453de3c42f5f6e
parent261d0b4f0e4e70025513696bf7427d78a369b310
[3.11] gh-105375: Explicitly initialise all {Pickler,Unpickler}Object fields (#105686) (#105711)

* [3.11] gh-105375: Explicitly initialise all {Pickler,Unpickler}Object fields (#105686)

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