Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol ↵ | Ma Lin | 2021-06-22 | 1 | -0/+9 |
| | | | | | | | correctly (GH-26764) No longer use len() to get the length of the input data. For some buffer protocol objects, the length obtained by using len() is wrong. | ||||
* | bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25190) | Inada Naoki | 2021-04-06 | 1 | -6/+7 |
| | | | | | | * Fix test_lzma * Fix test_mailbox * Fix test_mimetypes * Fix test_posix | ||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21169) | Hai Shi | 2020-06-30 | 1 | -1/+5 |
| | |||||
* | bpo-40286: Use random.randbytes() in tests (GH-19575) | Victor Stinner | 2020-04-17 | 1 | -1/+1 |
| | |||||
* | bpo-21872: fix lzma library decompresses data incompletely (GH-14048) | animalize | 2019-09-12 | 1 | -0/+163 |
| | | | | | | | * 1. add test case with wrong behavior * 2. fix bug when max_length == -1 * 3. allow b"" as valid input data for decompress_buf() * 4. when max_length >= 0, let needs_input mechanism works * add more asserts to test case | ||||
* | bpo-37707: Exclude expensive unit tests from PGO task (GH-15009) | Neil Schemenauer | 2019-07-30 | 1 | -0/+2 |
| | | | | | Mark some individual tests to skip when --pgo is used. The tests marked increase the PGO task time significantly and likely don't help improve optimization of the final executable. | ||||
* | bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995) | Oren Milman | 2018-02-13 | 1 | -0/+11 |
| | |||||
* | Issue #27517: LZMA compressor and decompressor no longer raise exceptions if | Serhiy Storchaka | 2016-10-31 | 1 | -0/+38 |
|\ | | | | | | | given empty data twice. Patch by Benjamin Fogle. | ||||
| * | Issue #27517: LZMA compressor and decompressor no longer raise exceptions if | Serhiy Storchaka | 2016-10-31 | 1 | -0/+38 |
| | | | | | | | | given empty data twice. Patch by Benjamin Fogle. | ||||
* | | Issue #28229: lzma module now supports pathlib | Berker Peksag | 2016-10-04 | 1 | -0/+22 |
| | | |||||
* | | Issue #28275: Merge bz2 fix from 3.5 into 3.6 | Martin Panter | 2016-10-01 | 1 | -5/+3 |
|\ \ | |/ | |||||
| * | Issue #28275: Clean up to avoid use-after-free after bzip decompress failure | Martin Panter | 2016-10-01 | 1 | -5/+3 |
| | | |||||
* | | Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress(). | Serhiy Storchaka | 2016-09-27 | 1 | -0/+9 |
|\ \ | |/ | | | | | Original patch by John Leitch. | ||||
| * | Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress(). | Serhiy Storchaka | 2016-09-27 | 1 | -0/+9 |
| | | | | | | | | Original patch by John Leitch. | ||||
* | | Use sequence repetition instead of bytes constructor with integer argument. | Serhiy Storchaka | 2016-09-11 | 1 | -2/+2 |
|/ | |||||
* | Issue #27076: Doc, comment and tests spelling fixes | Martin Panter | 2016-05-26 | 1 | -1/+1 |
| | | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä. | ||||
* | Issue #23529: Limit the size of decompressed data when reading from | Antoine Pitrou | 2015-04-10 | 1 | -6/+19 |
| | | | | | | | | GzipFile, BZ2File or LZMAFile. This defeats denial of service attacks using compressed bombs (i.e. compressed payloads which decompress to a huge size). Patch by Martin Panter and Nikolaus Rath. | ||||
* | Issue #15955: Add an option to limit output size when decompressing LZMA data. | Antoine Pitrou | 2015-01-17 | 1 | -0/+91 |
| | | | | Patch by Nikolaus Rath and Martin Panter. | ||||
* | Issue #22777: Test pickling with all protocols. | Serhiy Storchaka | 2014-12-15 | 1 | -4/+5 |
| | |||||
* | Closes #19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF. | Nadeem Vawda | 2013-12-04 | 1 | -0/+26 |
|\ | | | | | | | Also fix an analogous bug (not a regression) in the lzma module. | ||||
| * | #19839: Fix lzma module's handling of non-lzma data at EOF. | Nadeem Vawda | 2013-12-04 | 1 | -0/+26 |
| | | |||||
* | | #19395: Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor). | Nadeem Vawda | 2013-10-28 | 1 | -0/+9 |
|\ \ | |/ | | | | | | | | | | | The underlying C libraries provide no mechanism for serializing compressor and decompressor objects, so actually pickling these classes is impractical. Previously, these objects would be pickled without error, but attempting to use a deserialized instance would segfault the interpreter. | ||||
| * | #19395: Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor). | Nadeem Vawda | 2013-10-28 | 1 | -0/+9 |
| | | | | | | | | | | | | | | The underlying C libraries provide no mechanism for serializing compressor and decompressor objects, so actually pickling these classes is impractical. Previously, these objects would be pickled without error, but attempting to use a deserialized instance would segfault the interpreter. | ||||
| * | Back out patch for #1159051, which caused backwards compatibility problems. | Georg Brandl | 2013-05-12 | 1 | -14/+0 |
| | | |||||
* | | Issue #19201: Add support for the 'x' mode to the lzma module. | Nadeem Vawda | 2013-10-18 | 1 | -3/+29 |
|/ | | | | Patch by Tim Heaney and Vajrasky Kok. | ||||
* | Fix accidental non-breakable spaces (U+00A0). | Serhiy Storchaka | 2013-02-08 | 1 | -1/+1 |
| | |||||
* | Issue #1159051: GzipFile now raises EOFError when reading a corrupted file | Serhiy Storchaka | 2013-01-22 | 1 | -0/+14 |
| | | | | | with truncated header or footer. Added tests for reading truncated gzip, bzip2, and lzma files. | ||||
* | Make lzma.{encode,decode}_filter_properties private. | Nadeem Vawda | 2012-06-21 | 1 | -13/+13 |
| | | | | | | | | These functions were originally added to support LZMA compression in the zipfile module, and are not of interest for the majority of users. They can be made public in 3.4 if there is user interest, but in the meanwhile, I've opted to present a smaller, simpler API for the module's initial release. | ||||
* | Fix GzipFile's handling of filenames given as bytes objects. | Nadeem Vawda | 2012-06-19 | 1 | -0/+24 |
| | | | | Add relevant tests for GzipFile, and also for BZ2File and LZMAFile. | ||||
* | Add a function lzma.open(), to match gzip.open() and bz2.open(). | Nadeem Vawda | 2012-06-04 | 1 | -0/+101 |
| | |||||
* | Allow LZMAFile to accept modes with a "b" suffix. | Nadeem Vawda | 2012-06-04 | 1 | -2/+17 |
| | |||||
* | Simplify usage of LZMAFile's fileobj support, like with BZ2File. | Nadeem Vawda | 2012-06-04 | 1 | -120/+110 |
| | |||||
* | Rename lzma.check_is_supported() to is_check_supported() to avoid ↵ | Nadeem Vawda | 2012-05-06 | 1 | -4/+4 |
| | | | | grammatical confusion. | ||||
* | Add lzma.{encode,decode}_filter_properties(). | Nadeem Vawda | 2012-05-06 | 1 | -0/+43 |
| | |||||
* | Fix seekable() in BZ2File and LZMAFile to check whether the underlying file ↵ | Nadeem Vawda | 2012-02-11 | 1 | -0/+9 |
| | | | | supports seek(). | ||||
* | Issue #6715: Add module for compression using the LZMA algorithm. | Nadeem Vawda | 2011-11-29 | 1 | -0/+1335 |