gh-67413: Fix segfaults and multiple leaks in the lzma and bz2 modules by ZackerySpytz · Pull Request #7822 · python/cpython

@ZackerySpytz

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.

@ZackerySpytz

izbyshev

@ZackerySpytz

kumaraditya303

@erlend-aasland

kumaraditya303

@erlend-aasland erlend-aasland changed the title bpo-23224: Fix segfaults and multiple leaks in the lzma and bz2 modules gh-67413: Fix segfaults and multiple leaks in the lzma and bz2 modules

Feb 23, 2023

JelleZijlstra pushed a commit to JelleZijlstra/cpython that referenced this pull request

Sep 10, 2024
…es (pythonGH-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