summaryrefslogtreecommitdiffstats
path: root/generic/tclZlib.c
Commit message (Collapse)AuthorAgeFilesLines
* More usage of TclNewObj() in stead of Tcl_NewObj() and TclNewIntObj() in ↵jan.nijtmans2020-10-131-2/+3
| | | | stead of Tcl_NewIntObj()
* Update internal zlib channel type from TCL_CHANNEL_VERSION_3 to ↵jan.nijtmans2020-09-281-8/+8
| | | | TCL_CHANNEL_VERSION_5. Not actually a change, since supported procs are the same. So all internal channels have the same type
* Merge 8.5jan.nijtmans2020-06-251-2/+2
|
* merge zlib-chan-f70ce1fead, [f70ce1fead] - rewritten and optimized inflate:sebres2020-06-241-149/+133
|\ | | | | | | | | default read ahead limit set to 4K (instead of 1); better SF/BO prevention; code simplification, no interim copy/move buffers, no decompression d-string, the inflate occurring in single step (ResultDecompress combines ResultGenerate and ResultCopy); better handling in non-blocking mode (also recognizes or distinguish no data/EAGAIN cases).
| * Added two tests demonstrating that the tickets [8af92dfb66] (bad stream ↵aku2020-06-231-2/+3
| | | | | | | | | | | | | | | | | | | | expansion) and [f70ce1fead] (multi-stream decoding without readahead limit shenanigans) are fixed. Verified that the tests fail with commit [4eb66645d6], just before the zlib fixes. Tweaked the zlib manpage paragraphs about -limit. Tweaked some code comments. Fixed typos in description of two unrelated zlib tests.
| * code simplification, no interim copy/move buffers, no decompression ↵sebres2020-04-161-127/+103
| | | | | | | | d-string, the inflate occurring in single step (ResultDecompress combines ResultGenerate and ResultCopy); better handling in non-blocking mode (also recognizes or distinguish no data/EAGAIN cases)
| * small amend combining similar partssebres2020-04-161-20/+10
| |
| * zlib: optimize ZlibTransformInput, if inflate is done no read and no ↵sebres2020-04-161-25/+25
| | | | | | | | generate needed anymore
| * zlib: performance - set default read ahead limit to DEFAULT_BUFFER_SIZE ↵sebres2020-04-161-1/+4
| | | | | | | | (4K); better fix avoiding BO (replacement for [54605d16b9])
| * added (reworked) patch suggested by aku in [f70ce1fead]: recognize stream is ↵sebres2020-04-161-5/+21
| | | | | | | | done (and unget the unprocessed data back to input channel)
* | Code cleanup (more typecasts), making it more compatible with -Wc++-compat. ↵jan.nijtmans2020-04-201-32/+32
| | | | | | | | Less use of /* ARGUSED */.
* | zlib, *BO*: fixes possible segfault (or buffer overrun), for instance if ↵sebres2020-04-161-1/+3
|/ | | | limit (max 65K) is set larger as allocated buffer for inflate-input (default 4K)
* fixes bug [8af92dfb66]: resolve too earlier stop of inflate's cycle (if ↵sebres2020-04-151-1/+1
| | | | generating decompressed data on flush case of full buffer)
* Clear up a bunch of small issues found by Coverity analysis.dkf2018-11-161-1/+1
|
* [50750c735a] Fix for uninit memory handling issue in zlib transforms.dkf2017-04-251-18/+16
|
* zlib stream finalize calls deflate with no input - this case (and this caseaspect2017-02-111-2/+2
| | | | | only) must be allowed. Fixes 2nd issue in [25842c161f], introduced by [c1aff52ef3]
* One more place where the internal API change can be used easily.dkf2016-10-301-5/+2
|
* Fix the bug. Make use of zlib API in this area more like a Tcl API with ↵dkf2016-10-301-58/+86
| | | | wrapper function.
* Fixed bug in pushed transforms with full internal buffers not writing out.dkf2016-09-061-15/+33
|
* [dd260aaf72] Allow the -dictionary option to be read from a pushed transform.dkf2016-06-271-21/+15
|
* Was handling the flushing at the end of the stream wrongly.dkf2016-04-041-4/+5
|
* Clean up the handling of buffer limit exceeding when flushing a zlib transform.dkf2016-02-051-26/+59
|
* [25842c161] Prevent zero-length compress actions in [zlib] streaming API.dkf2016-02-031-15/+18
|
* Eliminate some usages of Tcl_GlobalEval() and Tcl_Eval(), which are ↵jan.nijtmans2016-01-181-2/+2
| | | | deprecated functions.
* Align comment. Remove some end-of-line spacing. No functional changes.jan.nijtmans2015-09-281-1/+1
|
* Plug memory leaks in the Tcl_ZlibInflate() error handling code. Fix for ↵Joe Mistachkin2015-06-111-1/+2
| | | | ticket [478c446889].
* Bump to zlib 2.0.1.dgp2014-08-221-1/+1
|
* [726349fab8] Stop leaking compression dictionary on zlib xform channel close.dgp2014-07-151-0/+4
|
* Don't use Tcl_GetCommandInfo when Tcl_FindCommand suffices.jan.nijtmans2014-07-091-3/+2
|
* Same improvements to the zlib transform operations.dgp2014-05-191-40/+5
|
* Tolerate NULL interpsdgp2013-03-271-6/+12
|
* [Bug 3603553]: Ensure that data gets written to the underlying stream bydkf2013-02-111-1/+1
| | | | | | | compressing transforms when the amount of data to be written is one buffer's-worth; problem was particularly likely to occur when compressing large quantities of not-very-compressible data. Many thanks to Piera Poggio (vampiera) for reporting.
* [Bug 3601086]: Register zlib config as iso8859-1 (a superset of ascii) as thatdkf2013-01-161-1/+1
| | | is an encoding we guarantee to support without loading encoding files.
* TIP 400 suffered from the same segfaulting flaw as 3595576.dgp2012-12-131-16/+3
| | | Segfaulting test and fix committed.
* Silence some (unimportant) warnings from the MIPSpro compiler.dkf2012-11-281-5/+6
|
* [3590483]: Some compilers cannot initialize with complex non-constants.dkf2012-11-281-24/+27
|
* clean up some of the code to remove warnings and uselessly-settable thingsdkf2012-10-041-15/+43
|
* documented new C API; corrected type signature of no-zlib fallback functiondkf2012-10-031-6/+3
|
* merge trunkdkf2012-08-111-93/+100
|\
| * more result generation conversiondkf2012-08-041-29/+33
| |
| * converting to using Tcl_Obj API for error message generation; part donedkf2012-08-031-12/+13
| |
* | merge trunkdkf2012-07-041-8/+4
|\ \ | |/
| * Factor out a number of common patterns of use of Tcl_DStringAppend.dkf2012-07-031-8/+4
| |
* | add configurability of readahead limitdkf2012-06-241-39/+74
| |
* | Start to split apart the stream command implementation for easier maintenance.dkf2012-06-221-180/+238
| |
* | more cross-testing of dictionary-powered compression; describe package ↵dkf2012-06-091-43/+179
| | | | | | | | configuration
* | tidy up, fix testdkf2012-06-091-27/+38
| |
* | compressing transforms now work with dictionaries, even if rawdkf2012-06-071-0/+16
| |
* | merge trunkdkf2012-06-061-1/+10
|\ \ | |/
| * Declare that Tcl provides the zlib 2.0 package.dkf2012-06-061-1/+10
| |