Skip to content

[3.10] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29587) #29811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 27, 2021

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 27, 2021

  • 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 7edb627)

Co-authored-by: Ma Lin animalize@users.noreply.github.com

https://bugs.python.org/issue41735

Automerge-Triggered-By: GH:gpshead

…ythonGH-29587)

* 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 7edb627)

Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
@miss-islington
Copy link
Contributor Author

@animalize and @gpshead: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington
Copy link
Contributor Author

@animalize and @gpshead: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Contributor Author

@animalize and @gpshead: Status check is done, and it's a success ✅ .

@gpshead gpshead self-assigned this Nov 27, 2021
@gpshead gpshead added 🤖 automerge type-bug An unexpected behavior, bug, or error labels Nov 27, 2021
@miss-islington
Copy link
Contributor Author

@miss-islington: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 57100c8 into python:3.10 Nov 27, 2021
@miss-islington miss-islington deleted the backport-7edb627-3.10 branch November 27, 2021 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants