[3.15] gh-150599: Prevent bz2 decompressor reuse after errors (GH-150600)

(cherry picked from commit 5755d0f083)

Co-authored-by: Stan Ulbrych <stan@python.org>
This commit is contained in:
Miss Islington (bot) 2026-06-07 18:48:30 +02:00 committed by GitHub
parent a642d1ab38
commit d3ca26983d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 33 additions and 3 deletions

View file

@ -0,0 +1,3 @@
Fix a possible stack buffer overflow in :mod:`bz2` when a
:class:`bz2.BZ2Decompressor` is reused after a decompression error.
The decompressor now becomes unusable after libbz2 reports an error.