summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_lzma.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995)Oren Milman2018-02-131-0/+11
|
* Issue #27517: LZMA compressor and decompressor no longer raise exceptions ifSerhiy Storchaka2016-10-311-0/+38
|\ | | | | | | given empty data twice. Patch by Benjamin Fogle.
| * Issue #27517: LZMA compressor and decompressor no longer raise exceptions ifSerhiy Storchaka2016-10-311-0/+38
| | | | | | | | given empty data twice. Patch by Benjamin Fogle.
* | Issue #28229: lzma module now supports pathlibBerker Peksag2016-10-041-0/+22
| |
* | Issue #28275: Merge bz2 fix from 3.5 into 3.6Martin Panter2016-10-011-5/+3
|\ \ | |/
| * Issue #28275: Clean up to avoid use-after-free after bzip decompress failureMartin Panter2016-10-011-5/+3
| |
* | Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress().Serhiy Storchaka2016-09-271-0/+9
|\ \ | |/ | | | | Original patch by John Leitch.
| * Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress().Serhiy Storchaka2016-09-271-0/+9
| | | | | | | | Original patch by John Leitch.
* | Use sequence repetition instead of bytes constructor with integer argument.Serhiy Storchaka2016-09-111-2/+2
|/
* Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-261-1/+1
| | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* Issue #23529: Limit the size of decompressed data when reading fromAntoine Pitrou2015-04-101-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 Pitrou2015-01-171-0/+91
| | | | Patch by Nikolaus Rath and Martin Panter.
* Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-4/+5
|
* Closes #19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF.Nadeem Vawda2013-12-041-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 Vawda2013-12-041-0/+26
| |
* | #19395: Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor).Nadeem Vawda2013-10-281-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 Vawda2013-10-281-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 Brandl2013-05-121-14/+0
| |
* | Issue #19201: Add support for the 'x' mode to the lzma module.Nadeem Vawda2013-10-181-3/+29
|/ | | | Patch by Tim Heaney and Vajrasky Kok.
* Fix accidental non-breakable spaces (U+00A0).Serhiy Storchaka2013-02-081-1/+1
|
* Issue #1159051: GzipFile now raises EOFError when reading a corrupted fileSerhiy Storchaka2013-01-221-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 Vawda2012-06-211-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 Vawda2012-06-191-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 Vawda2012-06-041-0/+101
|
* Allow LZMAFile to accept modes with a "b" suffix.Nadeem Vawda2012-06-041-2/+17
|
* Simplify usage of LZMAFile's fileobj support, like with BZ2File.Nadeem Vawda2012-06-041-120/+110
|
* Rename lzma.check_is_supported() to is_check_supported() to avoid ↵Nadeem Vawda2012-05-061-4/+4
| | | | grammatical confusion.
* Add lzma.{encode,decode}_filter_properties().Nadeem Vawda2012-05-061-0/+43
|
* Fix seekable() in BZ2File and LZMAFile to check whether the underlying file ↵Nadeem Vawda2012-02-111-0/+9
| | | | supports seek().
* Issue #6715: Add module for compression using the LZMA algorithm.Nadeem Vawda2011-11-291-0/+1335