]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29587)
authorMa Lin <animalize@users.noreply.github.com>
Sat, 27 Nov 2021 00:18:17 +0000 (08:18 +0800)
committerGitHub <noreply@github.com>
Sat, 27 Nov 2021 00:18:17 +0000 (16:18 -0800)
commit7edb6270a78c695e4c2ae2432797dc18105374fc
treedfd17acdc4e4dd694458e99e14a63db718165cee
parent4841e694ee1686f8c933ddfcb8c854915867ce17
bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29587)

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

Getting `.unconsumed_tail` before acquiring the thread lock may mix up decompress state.
Misc/NEWS.d/next/Library/2021-11-16-18-13-49.bpo-41735.D72UY1.rst [new file with mode: 0644]
Modules/zlibmodule.c