summaryrefslogtreecommitdiffstats
path: root/generic/tclZlib.c
Commit message (Collapse)AuthorAgeFilesLines
* Tweak usage of TCL_NO_DEPRECATEDjan.nijtmans2021-03-151-1/+1
|
* Merge 8.7jan.nijtmans2020-12-111-5/+8
|\
| * Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-3/+3
| | | | | | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
| * Case-sensitive package namesjan.nijtmans2020-11-031-1/+4
| |
* | Merge 8.7jan.nijtmans2020-11-251-232/+271
|\ \ | |/
| * TIP #587: Default utf-8 for source commandjan.nijtmans2020-10-221-1/+1
| |\
| | * Merge 8.7jan.nijtmans2020-10-011-1/+1
| | |
| * | Fix -Wshadow warnings, when compiling with a C++ compilerjan.nijtmans2020-10-021-2/+2
| |/
| * Eliminate many usages of Tcl_NewObj (-> TclNewObj) and Tcl_NewIntObj (-> ↵jan.nijtmans2020-09-171-3/+4
| | | | | | | | TclNewIntObj or Tcl_NewWideIntObj)
| * Change version number of http package from 2.9.5 -> 2.10.0a1, since it's ↵jan.nijtmans2020-09-171-6/+6
| |\ | | | | | | | | | | | | different from the 2.9.5 version in Tcl 8.6.x. Use "$idx >= 0" check in stead of "$idx > -1" everywhere.
| * \ Merge 8.6jan.nijtmans2020-06-251-2/+2
| |\ \ | | |/
| | * Merge 8.5jan.nijtmans2020-06-251-2/+2
| | |
| * | amend to 8.6th zlib-fix resolving warnings in 8.7 (int vs size_t, void * vs ↵sebres2020-06-241-3/+3
| | | | | | | | | | | | char *, etc)
| * | merge 8.6sebres2020-06-241-147/+133
| |\ \ | | |/
| | * 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)
| * | Merge 8.6jan.nijtmans2020-04-151-1/+1
| |\ \ | | |/
| | * 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)
| * | Use TclGetBytesFromObj to check that all commands and public routines thatdgp2020-04-011-14/+59
| | | | | | | | | expect bytes as arguments get what they expect.
| * | Create a new macro to deal with unused arguments so we can silence compilerdgp2020-03-021-2/+1
| | | | | | | | | warnings without the need of an explosion of noise lines "(void)dummy"
| * | Implement TIP #562: Deprecate channel types 1-4jan.nijtmans2020-02-281-4/+9
| |\ \
| | * | Make Tcl_ChannelCloseProc() deprecated too. Implement close2Proc and ↵jan.nijtmans2020-01-311-4/+9
| | | | | | | | | | | | | | | | wideSeekProc for all internal channel types.
| * | | Merge 8.7jan.nijtmans2020-02-131-1/+1
| |\ \ \ | | |/ /
| | * | Fix compiler warnings on Cygwin when using -DTCL_NO_DEPRECATEDjan.nijtmans2020-01-291-1/+1
| | | | | | | | | | | | Use TCL_CHANNEL_VERSION_5 in stead of TCL_CHANNEL_VERSION_3 in tclZlib.c
| * | | Mark more unused parametersjan.nijtmans2019-09-031-1/+2
| | | |
| * | | Merge 8.7, and continue implementation. Almost donejan.nijtmans2019-07-101-25/+25
| |/ /
| * | Fix clang compiler warning in tclZlib.c. Clear execute bit in two encodingsjan.nijtmans2019-04-081-1/+1
| | |
| * | Modify testbytestring such that is only produces pure byte-arrays, if not it ↵jan.nijtmans2019-04-011-2/+4
| | | | | | | | | | | | | | | errors out. Modify Tcl_NewIntObj/Tcl_NewBooleanObj -> Tcl_NewWideIntObj. Less references to "long" datatype.
| * | If compiled with -DTCL_NO_DEPRECATED, remove ↵jan.nijtmans2018-12-121-9/+9
| | | | | | | | | | | | | | | Tcl_NewIntObj/Tcl_NewLongObj/Tcl_DbNewLongObj from stub table, as they will be gone in 9.0 (converted to a macro) Use Tcl_WideInt's directly in more places, diminishing the possibility of inadvent overflow.
| * | merge 8.6dgp2018-11-161-1/+1
| |\ \ | | |/
| | * Clear up a bunch of small issues found by Coverity analysis.dkf2018-11-161-1/+1
| | |
| * | Add entry for Tcl_StaticPackage in internal stub table, since the public one ↵jan.nijtmans2018-11-151-18/+18
|/ / | | | | | | | | is deprecated and will be removed in 9.0 Clean-up a lot of type-casts, which are not necessary any more.
* | Fix test for UNICODE in win/tclAppInit.c. No longer check for "tclsh ↵jan.nijtmans2018-10-121-3/+3
| | | | | | | | install", because tclsh is not compiled with that. Fix minizip.c compilation on systems without open64()
* | protect Tcl_WinUtfToTChar/Tcl_WinTCharToUtf against NULL input values: ↵jan.nijtmans2018-10-061-3/+3
| | | | | | | | | | return empty string in that case. Add TIP #494-compatible definitions of TCL_IO_FAILURE/TCL_AUTO_LENGTH, and use it in some appropriate places.
* | merge core-8-branchdkf2018-09-041-182/+223
|\ \
| * | Rename (internal) TclNewWideObj macro to TclNewIntObj. Change ↵jan.nijtmans2018-01-261-1/+1
| | | | | | | | | | | | Tcl_SetIntObj/Tcl_SetLongObj to macro's referencing Tcl_SetWideIntObj (since all of those do the same now)
| * | Finally, get rid of tclWideIntType completelyjan.nijtmans2017-11-011-1/+1
| | |
| * | [50750c735a] Fix broken test and stop reading uninit-but-allocated memory in ↵dkf2017-04-271-18/+16
| |\ \ | | |/ | | | | | | zlib channel transform.
| | * [50750c735a] Fix for uninit memory handling issue in zlib transforms.dkf2017-04-251-18/+16
| | |
| * | [25842c161f] Ensure that finalization of a zlib stream works.dkf2017-02-261-2/+2
| |\ \ | | |/
| | * 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]
| * | Eliminate the internal macro/function TclNewIntObj: In all cases ↵jan.nijtmans2016-12-231-1/+1
| | | | | | | | | | | | TclNewLongObj is just as good.
| * | [1ae12987cb] Ensure that deleting the [history] command deletes its storage.dkf2016-10-301-5/+2
| |\ \ | | |/