]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-23224: Fix segfaults and multiple leaks in the lzma and bz2 modules (GH-7822)
authorZackery Spytz <zspytz@gmail.com>
Thu, 23 Feb 2023 14:00:58 +0000 (06:00 -0800)
committerGitHub <noreply@github.com>
Thu, 23 Feb 2023 14:00:58 +0000 (06:00 -0800)
commit665730d2176aabd05ca5741056aef43189b6f754
treea91cd6c443b91d26f5f404629e265aefec8832c1
parent9bba8035bd99813203cb3b0de218f9cc3bcdaf2f
bpo-23224: Fix segfaults and multiple leaks in the lzma and bz2 modules (GH-7822)

lzma.LZMADecompressor and bz2.BZ2Decompressor objects caused
segfaults when their `__init__()` methods were not called.

lzma.LZMADecompressor, lzma.LZMACompressor, bz2.BZ2Compressor,
and bz2.BZ2Decompressor objects would leak locks and internal buffers
when their `__init__()` methods were called multiple times.

https://bugs.python.org/issue23224
Lib/test/test_bz2.py
Lib/test/test_lzma.py
Misc/NEWS.d/next/Library/2018-06-20-09-12-21.bpo-23224.zxCQ13.rst [new file with mode: 0644]
Modules/_bz2module.c
Modules/_lzmamodule.c
Modules/clinic/_bz2module.c.h
Modules/clinic/_lzmamodule.c.h