]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix thread locks in zlib module may go wrong in rare case (#22132)
authorMa Lin <animalize@users.noreply.github.com>
Mon, 26 Apr 2021 19:48:20 +0000 (03:48 +0800)
committerGitHub <noreply@github.com>
Mon, 26 Apr 2021 19:48:20 +0000 (21:48 +0200)
commit196b8f300479d4e4050d9af9ba4ed82ee1e81dc8
tree7672c16e4025f00641fa888fc8c8bcc00c1fcaa8
parentb570feaa9c6039b9d89cdf854a5fb388872eb38e
Fix thread locks in zlib module may go wrong in rare case (#22132)

Setting `next_in` before acquiring the thread lock may mix up compress/decompress state in other threads.
Misc/NEWS.d/next/Library/2020-09-07-21-51-17.bpo-41735.NKqGKy.rst [new file with mode: 0644]
Modules/zlibmodule.c