]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29587...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 27 Nov 2021 00:42:00 +0000 (16:42 -0800)
committerGitHub <noreply@github.com>
Sat, 27 Nov 2021 00:42:00 +0000 (16:42 -0800)
commit57100c86baa8451a568348646834380cd425b858
treea6a3a5c625047986ef5826639b52ce4094918d8a
parent3dcbe01dc5236fb77d8c0133fb7e6bdd0754768a
[3.10] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29587) (GH-29811)

* Fix thread lock in zlib.Decompress.flush() may go wrong

Getting `.unconsumed_tail` before acquiring the thread lock may mix up decompress state.
(cherry picked from commit 7edb6270a78c695e4c2ae2432797dc18105374fc)

Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
Automerge-Triggered-By: GH:gpshead
Misc/NEWS.d/next/Library/2021-11-16-18-13-49.bpo-41735.D72UY1.rst [new file with mode: 0644]
Modules/zlibmodule.c