]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29588)
authorMa Lin <animalize@users.noreply.github.com>
Sat, 27 Nov 2021 00:21:22 +0000 (08:21 +0800)
committerGitHub <noreply@github.com>
Sat, 27 Nov 2021 00:21:22 +0000 (16:21 -0800)
commit86c1265cdc64030c8921e0da5fcae2ac64299c26
tree6a38f9fef6e030e6479b92418ee1aa3d7acfccd2
parent133fb267f437f9bd568738d0e0e59e574fc82b02
[3.9] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29588)

* Fix thread lock in zlib.Decompress.flush() may go wrong
Getting `.unconsumed_tail` before acquiring the thread lock may mix up decompress state.

backport of https://github.com/python/cpython/pull/29587 to 3.9/3.8.
Misc/NEWS.d/next/Library/2021-11-17-11-38-30.bpo-41735.2feh9v.rst [new file with mode: 0644]
Modules/zlibmodule.c