summaryrefslogtreecommitdiffstats
path: root/Modules/zlibmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19659: Added documentation for Argument Clinic.Larry Hastings2014-01-041-5/+2
|
* Issue #19976: Argument Clinic METH_NOARGS functions now alwaysLarry Hastings2014-01-041-2/+15
| | | | take two parameters.
* Issue #18294: Fix uint_converter() in zlibmodule.c, fix the "> UINT_MAX" checkVictor Stinner2014-01-031-5/+6
|
* Clinic: fix "self converters" with METH_NOARGS functions.Larry Hastings2013-11-241-41/+46
|
* Issue #19674: inspect.signature() now produces a correct signatureLarry Hastings2013-11-231-8/+9
| | | | for some builtins.
* Issue #19730: Argument Clinic now supports all the existing PyArgLarry Hastings2013-11-231-23/+77
| | | | | "format units" as legacy converters, as well as two new features: "self converters" and the "version" directive.
* Close #18294: Fix the zlib module to make it 64-bit safeVictor Stinner2013-11-211-55/+125
|
* Argument Clinic: rename "self" to "module" for module-level functions.Larry Hastings2013-11-181-19/+21
|
* Issue #16612: Add "Argument Clinic", a compile-time preprocessorLarry Hastings2013-10-191-61/+122
| | | | for C files to generate argument parsing code. (See PEP 436.)
* Issue #18408: Fix usage of _PyBytes_Resize()Victor Stinner2013-07-081-16/+8
| | | | | _PyBytes_Resize(&v, new_size) sets v to NULL on error, so v cannot be used anymore. Replace "Py_DECREF(v); v = NULL;" with "Py_CLEAR(v);".
* Issue #18408: Fix zlib.compressobj() to handle PyThread_allocate_lock() failureVictor Stinner2013-07-081-0/+4
| | | | (MemoryError).
* 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-8/+28
|
* Issue #18203: Replace malloc() with PyMem_Malloc() in Python modulesVictor Stinner2013-07-071-2/+2
| | | | | Replace malloc() with PyMem_Malloc() when the GIL is held, or with PyMem_RawMalloc() otherwise.
* Issue #9566: zlib: Explicit cast to unsigned int to fix a compiler warning ↵Victor Stinner2013-06-241-4/+4
| | | | on Windows x64
* Issue #17917: Use PyModule_AddIntMacro() instead of PyModule_AddIntConstant()Charles-Francois Natali2013-05-201-14/+14
| | | | when applicable.
* zlib: Explicit cast to fix a compiler warningVictor Stinner2013-05-071-1/+1
|
* Issue #15677: Document that zlib and gzip accept a compression level of 0 to ↵Nadeem Vawda2012-11-111-2/+2
|\ | | | | | | | | | | mean 'no compression'. Patch by Brian Brazil.
| * Issue #15677: Document that zlib and gzip accept a compression level of 0 to ↵Nadeem Vawda2012-11-111-2/+2
| |\ | | | | | | | | | | | | | | | mean 'no compression'. Patch by Brian Brazil.
| | * Issue #15677: Document that zlib and gzip accept a compression level of 0 to ↵Nadeem Vawda2012-11-111-3/+3
| | | | | | | | | | | | | | | | | | mean 'no compression'. Patch by Brian Brazil.
* | | Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to ↵Nadeem Vawda2012-11-111-0/+2
|\ \ \ | |/ / | | | | | | | | | | | | access previously-freed memory. Patch by Serhiy Storchaka.
| * | Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to ↵Nadeem Vawda2012-11-111-0/+2
| |\ \ | | |/ | | | | | | | | | | | | access previously-freed memory. Patch by Serhiy Storchaka.
| | * Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to ↵Nadeem Vawda2012-11-111-0/+2
| | | | | | | | | | | | | | | | | | access previously-freed memory. Patch by Serhiy Storchaka.
* | | Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in ↵Nadeem Vawda2012-11-111-44/+54
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | decompressobj().flush(). Additionally, fix a bug where a MemoryError in allocating a bytes object could leave the decompressor object in an invalid state (with its unconsumed_tail member being NULL). Patch by Serhiy Storchaka.
| * | Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in ↵Nadeem Vawda2012-11-111-44/+54
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | decompressobj().flush(). Additionally, fix a bug where a MemoryError in allocating a bytes object could leave the decompressor object in an invalid state (with its unconsumed_tail member being NULL). Patch by Serhiy Storchaka.
| | * Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in ↵Nadeem Vawda2012-11-111-45/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | decompressobj().flush(). Additionally, fix a bug where a MemoryError in allocating a bytes object could leave the decompressor object in an invalid state (with its unconsumed_tail member being NULL). Patch by Serhiy Storchaka.
* | | Issue #16350: Fix zlib decompressor handling of unused_data with multiple ↵Nadeem Vawda2012-11-041-6/+23
|\ \ \ | |/ / | | | | | | | | | | | | calls to decompress() after EOF. Patch by Serhiy Storchaka.
| * | Issue #16350: Fix zlib decompressor handling of unused_data with multiple ↵Nadeem Vawda2012-11-041-6/+23
| |\ \ | | |/ | | | | | | | | | | | | calls to decompress() after EOF. Patch by Serhiy Storchaka.
| | * Issue #16350: Fix zlib decompressor handling of unused_data with multiple ↵Nadeem Vawda2012-11-041-6/+23
| | | | | | | | | | | | | | | | | | calls to decompress() after EOF. Patch by Serhiy Storchaka.
* | | Issue #9566: Explicit downcast to fix compiler warnings on Win64Victor Stinner2012-10-301-2/+2
|/ /
* | Document the rest of zlib.compressobj()'s arguments.Nadeem Vawda2012-06-211-4/+17
| | | | | | | | Original patch by Jim Jewett; see issue 14684.
* | Tidy up comments from dd4f7d5c51c7 (zlib compression dictionary support).Nadeem Vawda2012-06-211-1/+1
| |
* | Issue #14684: Add support for predefined compression dictionaries to the ↵Nadeem Vawda2012-06-211-22/+96
| | | | | | | | | | | | zlib module. Original patch by Sam Rushing.
* | Issue #12306: Add ZLIB_RUNTIME_VERSION to the zlib module.Nadeem Vawda2011-09-111-0/+4
| | | | | | | | | | | | While we're at it, also document ZLIB_VERSION. Patch by Torsten Landschoff.
* | Merge: #12839: Fix crash in zlib module due to version mismatch.Nadeem Vawda2011-08-281-1/+7
|\ \ | |/ | | | | | | | | | | | | | | If the version of zlib used to compile the zlib module is incompatible with the one that is actually linked in, then calls into zlib will fail. This can leave attributes of the z_stream uninitialized, so we must take care to avoid segfaulting by trying to use an invalid pointer. Fix by Richard M. Tew.
| * Issue #12839: Fix crash in zlib module due to version mismatch.Nadeem Vawda2011-08-281-1/+7
| | | | | | | | | | | | | | | | | | If the version of zlib used to compile the zlib module is incompatible with the one that is actually linked in, then calls into zlib will fail. This can leave attributes of the z_stream uninitialized, so we must take care to avoid segfaulting by trying to use an invalid pointer. Fix by Richard M. Tew.
* | Fix incorrect comment in zlib.Decompress.flush().Nadeem Vawda2011-08-131-3/+1
| | | | | | | | Reported by Oleg Oshmyan in issue #12646.
* | Issue #12646: Add an 'eof' attribute to zlib.Decompress.Nadeem Vawda2011-08-131-6/+13
|/ | | | | | This will make it easier to detect truncated input streams. Also, make zlib's error messages more consistent.
* Issue #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.Nadeem Vawda2011-05-141-14/+23
| | | | | Raise an OverflowError if the input data is too large, instead of silently truncating the input and returning an incorrect result.
* Issue #8650: Backport 64-bit safety fixes for compress() and decompress().Nadeem Vawda2011-05-141-10/+21
|
* Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tailNadeem Vawda2011-05-141-7/+12
| | | | attribute when called without a max_length argument.
* Merged revisions 88460,88464,88466,88486,88511,88652 via svnmerge fromAntoine Pitrou2011-02-281-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88460 | antoine.pitrou | 2011-02-21 19:03:13 +0100 (lun., 21 févr. 2011) | 4 lines Issue #10276: Fix the results of zlib.crc32() and zlib.adler32() on buffers larger than 4GB. Patch by Nadeem Vawda. ........ r88464 | antoine.pitrou | 2011-02-21 20:05:08 +0100 (lun., 21 févr. 2011) | 3 lines Fix issues on 32-bit systems introduced by r88460 ........ r88466 | antoine.pitrou | 2011-02-21 20:28:40 +0100 (lun., 21 févr. 2011) | 3 lines Fix compile error under MSVC introduced by r88460. ........ r88486 | antoine.pitrou | 2011-02-22 00:41:12 +0100 (mar., 22 févr. 2011) | 5 lines Issue #4681: Allow mmap() to work on file sizes and offsets larger than 4GB, even on 32-bit builds. Initial patch by Ross Lagerwall, adapted for 32-bit Windows. ........ r88511 | antoine.pitrou | 2011-02-22 22:42:56 +0100 (mar., 22 févr. 2011) | 4 lines Issue #11277: finally fix Snow Leopard crash following r88460. (probably an OS-related issue with mmap) ........ r88652 | antoine.pitrou | 2011-02-26 16:58:05 +0100 (sam., 26 févr. 2011) | 4 lines Issue #9931: Fix hangs in GUI tests under Windows in certain conditions. Patch by Hirokazu Yamamoto. ........
* Merged revisions 81100 via svnmerge fromAntoine Pitrou2010-05-111-4/+17
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81100 | antoine.pitrou | 2010-05-12 01:46:02 +0200 (mer., 12 mai 2010) | 10 lines Merged revisions 81098 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81098 | antoine.pitrou | 2010-05-12 01:42:28 +0200 (mer., 12 mai 2010) | 5 lines Issue #8681: Make the zlib module's error messages more informative when the zlib itself doesn't give any detailed explanation. ........ ................
* Recorded merge of revisions 81032 via svnmerge fromAntoine Pitrou2010-05-091-231/+231
| | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines Recorded merge of revisions 81029 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ ................
* Merged revisions 80928 via svnmerge fromAntoine Pitrou2010-05-071-3/+4
| | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r80928 | antoine.pitrou | 2010-05-07 19:04:02 +0200 (ven., 07 mai 2010) | 11 lines Merged revisions 80926 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r80926 | antoine.pitrou | 2010-05-07 18:50:34 +0200 (ven., 07 mai 2010) | 5 lines Issue #8571: Fix an internal error when compressing or decompressing a chunk larger than 1GB with the zlib module's compressor and decompressor objects. ........ ................
* Merged revisions 76836 via svnmerge fromAntoine Pitrou2009-12-141-8/+8
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r76836 | antoine.pitrou | 2009-12-14 19:00:06 +0100 (lun., 14 déc. 2009) | 5 lines Issue #4757: `zlib.compress` and other methods in the zlib module now raise a TypeError when given an `str` object (rather than a `bytes`-like object). Patch by Victor Stinner and Florent Xicluna. ........
* Issue #1717: rename tp_compare to tp_reserved. I'll change theMark Dickinson2009-02-021-2/+2
| | | | | type of tp_compare in a separate commit, for ease of reversion should things go wrong.
* Issue #4738: finer-grained locking in the zlib module.Antoine Pitrou2009-01-021-61/+63
|
* Fixes release blocker issue #3492 and #3790.Gregory P. Smith2008-09-061-31/+31
| | | | | Make zlib and zipimport to return bytes instead of bytearray and use bytes rather than bytearray for their internal leftover data storages.
* Merged revisions 65654 via svnmerge fromMartin v. Löwis2008-08-131-14/+39
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r65654 | martin.v.loewis | 2008-08-12 16:49:50 +0200 (Tue, 12 Aug 2008) | 6 lines Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple, by denying s# to parse objects that have a releasebuffer procedure, and introducing s*. More module might need to get converted to use s*. ........