summaryrefslogtreecommitdiffstats
path: root/Modules/_lzmamodule.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-21872: fix lzma library decompresses data incompletely (GH-14048)animalize2019-09-121-6/+22
| | | | | | | * 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-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵Jeroen Demeyer2019-05-311-4/+4
| | | | | | | | | (GH-13464) Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async
* bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264)Serhiy Storchaka2019-03-131-2/+2
|
* bpo-33138: Change standard error message for non-pickleable and non-copyable ↵Serhiy Storchaka2018-10-311-18/+0
| | | | types. (GH-6239)
* bpo-35090: Fix potential division by zero in allocator wrappers (GH-10174)Alexey Izbyshev2018-10-281-1/+1
| | | | | | | * Fix potential division by zero in BZ2_Malloc() * Avoid division by zero in PyLzma_Malloc() * Avoid division by zero and integer overflow in PyZlib_Malloc() Reported by Svace static analyzer.
* bpo-33916: Fix bz2 and lzma init when called twice (GH-7843)Victor Stinner2018-06-231-2/+6
| | | | bz2, lzma: When Decompressor.__init__() is called twice, free the old lock to not leak memory.
* bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995)Oren Milman2018-02-131-1/+1
|
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-23/+0
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* Spelling fixes (#2902)Ville Skyttä2017-08-031-1/+1
|
* Issue #27517: LZMA compressor and decompressor no longer raise exceptions ifSerhiy Storchaka2016-10-311-0/+5
|\ | | | | | | given empty data twice. Patch by Benjamin Fogle.
| * Issue #27517: LZMA compressor and decompressor no longer raise exceptions ifSerhiy Storchaka2016-10-311-0/+5
| | | | | | | | given empty data twice. Patch by Benjamin Fogle.
* | Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress().Serhiy Storchaka2016-09-271-1/+3
|\ \ | |/ | | | | Original patch by John Leitch.
| * Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress().Serhiy Storchaka2016-09-271-1/+3
| | | | | | | | Original patch by John Leitch.
* | replace PY_LONG_LONG with long longBenjamin Peterson2016-09-061-11/+5
| |
* | - Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-6/+6
|\ \ | |/ | | | | generated by Argument Clinic. Patch by Petr Viktorin.
| * Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-6/+6
| | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
* | Issue #27171: Merge typo fixes from 3.5Martin Panter2016-06-021-1/+1
|\ \ | |/
| * Issue #27171: Fix typos in documentation, comments, and test function namesMartin Panter2016-06-021-1/+1
| |
* | Got rid of redundand "self" parameter declarations.Serhiy Storchaka2016-05-021-10/+4
|/ | | | Argument Clinic is now able to infer all needed information.
* Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-1/+1
|
* Issue #20440: Applied yet one patch for using Py_SETREF.Serhiy Storchaka2015-12-271-3/+2
| | | | The patch is automatically generated, it replaces the code that uses Py_CLEAR.
* Issue #23944: Argument Clinic now wraps long impl prototypes at column 78.Larry Hastings2015-04-141-6/+9
|
* Issue #23501: Argumen Clinic now generates code into separate files by default.Serhiy Storchaka2015-04-031-2/+1
|
* Removed unintentional trailing spaces in non-external and non-generated C files.Serhiy Storchaka2015-03-181-10/+10
|
* Regenerated Argument Clinic checksums.Serhiy Storchaka2015-02-201-1/+1
|
* Issue #15955: Add an option to limit output size when decompressing LZMA data.Antoine Pitrou2015-01-171-39/+179
| | | | Patch by Nikolaus Rath and Martin Panter.
* Issue #22207: Fix "comparison between signed and unsigned integers" warning inVictor Stinner2014-08-171-2/+2
| | | | | test checking for integer overflow on Py_ssize_t type: cast explicitly to size_t.
* Issue #20326: Argument Clinic now uses a simple, unique signature toLarry Hastings2014-01-281-9/+9
| | | | | | | | | | annotate text signatures in docstrings, resulting in fewer false positives. "self" parameters are also explicitly marked, allowing inspect.Signature() to authoritatively detect (and skip) said parameters. Issue #20326: Argument Clinic now generates separate checksums for the input and output sections of the block, allowing external tools to verify that the input has not changed (and thus the output is not out-of-date).
* Fix for catestrophic errors in previous checkin (Argument Clinic rollup patch).Larry Hastings2014-01-261-0/+1389
|
* Issue #20390: Small fixes and improvements for Argument Clinic.Larry Hastings2014-01-261-1389/+0
|
* Issue #20193: The _lzma module now uses Argument Clinic.Serhiy Storchaka2014-01-251-146/+203
| | | | LZMACompressor.__init__ is left not converted.
* #19395: Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor).Nadeem Vawda2013-10-281-0/+18
|\ | | | | | | | | | | | | 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/+18
| | | | | | | | | | | | | | 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.
* | Issue #18227: "Free" function of bz2, lzma and zlib modules has no return ↵Victor Stinner2013-07-071-1/+1
| | | | | | | | value (void)
* | Issue #18227: Use PyMem_RawAlloc() in bz2, lzma and zlib modulesVictor Stinner2013-07-071-0/+28
|/
* Make lzma.{encode,decode}_filter_properties private.Nadeem Vawda2012-06-211-20/+14
| | | | | | | | 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.
* Silence VS 2010 warning on loss of precision (_int64 -> _int32).Martin v. Löwis2012-05-151-1/+1
| | | | This is safe because the actual value is already range-checked.
* Remove uninitialized compiler warning.Ross Lagerwall2012-05-121-1/+5
|
* Fix buildbot failures in test_lzma.Nadeem Vawda2012-05-061-7/+6
|
* Rename lzma.check_is_supported() to is_check_supported() to avoid ↵Nadeem Vawda2012-05-061-6/+6
| | | | grammatical confusion.
* Add lzma.{encode,decode}_filter_properties().Nadeem Vawda2012-05-061-4/+182
|
* Fix formatting of preset values for exception messages in _lzmamodule.c.Nadeem Vawda2012-05-061-2/+2
|
* Credit Per Øyvind Karlsen for the initial implementation of the lzma module ↵Nadeem Vawda2011-11-301-1/+6
| | | | (issue #6715).
* Issue #6715: Add module for compression using the LZMA algorithm.Nadeem Vawda2011-11-291-0/+1106