| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Version 1.3.2 | Mark Adler | 27 hours | 1 | -1/+1 |
| | | |||||
| * | Check for invalid NULL pointer inputs to zlib operations. | gaoshutao | 7 days | 1 | -1/+1 |
| | | |||||
| * | Support non-blocking devices in the gz* routines. | Mark Adler | 2025-12-08 | 1 | -12/+22 |
| | | |||||
| * | Update gz*.c copyright dates. | Mark Adler | 2025-12-06 | 1 | -1/+1 |
| | | |||||
| * | Return all available uncompressed data on error in gzread.c. | Mark Adler | 2025-12-06 | 1 | -0/+1 |
| | | | | | | | | The error is recorded, and will be detected by the application after all of the uncompressed data has been consumed and then one more call is made to read data. The error is available immediately from gzerror() if the application would like to know earlier. | ||||
| * | Improve the discrimination between trailing garbage and bad gzip. | Mark Adler | 2025-12-06 | 1 | -0/+1 |
| | | | | | | | | | This proceeds to try to decode whatever follows the last gzip member, and concludes that it is acceptable trailing garbage only if it results in a data error without decompressing any data. This commit also reduces the probability of a false-positive gzip header detection. | ||||
| * | Add a "G" option to force gzip, disabling transparency in gzread(). | Mark Adler | 2025-12-06 | 1 | -3/+17 |
| | | | | | | If the input is not a gzip stream with this option, an error will be returned. | ||||
| * | Have gz_skip() update how far it got for later continuation. | Mark Adler | 2025-02-25 | 1 | -10/+8 |
| | | | | | This also simplifies seek processing in general. | ||||
| * | Use lseek under WinCE. | Mark Adler | 2024-02-13 | 1 | -4/+2 |
| | | |||||
| * | Further address Microsoft deprecation warnings. | Mark Adler | 2024-02-09 | 1 | -13/+15 |
| | | |||||
| * | Address Microsoft deprecation warnings. | Mark Adler | 2024-02-08 | 1 | -7/+10 |
| | | |||||
| * | zlib 1.3.1v1.3.1 | Mark Adler | 2024-01-22 | 1 | -1/+1 |
| | | |||||
| * | Make the existence of gz_intmax() unconditional. | Milan Bulat | 2024-01-17 | 1 | -5/+5 |
| | | | | | gz_intmax() is noted in zlib.map. This assures it's always there. | ||||
| * | Fix bug when using gzflush() with a very small buffer. | Mark Adler | 2023-08-14 | 1 | -2/+2 |
| | | |||||
| * | Remove K&R function definitions from zlib. | Mark Adler | 2023-04-15 | 1 | -77/+20 |
| | | | | | | | | C2X has removed K&R definitions from the C function syntax. Though the standard has not yet been approved, some high-profile compilers are now issuing warnings when such definitions are encountered. | ||||
| * | Minor formatting improvements. | Mark Adler | 2022-10-05 | 1 | -1/+1 |
| | | | | | No code changes. | ||||
| * | zlib 1.2.12v1.2.12 | Mark Adler | 2022-03-27 | 1 | -1/+1 |
| | | |||||
| * | Avoid adding empty gzip member after gzflush with Z_FINISH. | Mark Adler | 2019-04-13 | 1 | -0/+2 |
| | | |||||
| * | Avoid a conversion error in gzseek when off_t type too small. | Mark Adler | 2017-02-15 | 1 | -2/+2 |
| | | | | | | | | | This is a problem in the odd case that the second argument of LSEEK is a larger type than off_t. Apparently MinGW defines off_t to be 32 bits, but _lseeki64 has a 64-bit second argument. Also undo a previous commit to permit MinGW to use _lseeki64. | ||||
| * | zlib 1.2.11v1.2.11 | Mark Adler | 2017-01-15 | 1 | -1/+1 |
| | | |||||
| * | Avoid warnings on snprintf() return value. | Mark Adler | 2017-01-01 | 1 | -4/+4 |
| | | |||||
| * | zlib 1.2.9v1.2.9 | Mark Adler | 2016-12-31 | 1 | -1/+1 |
| | | |||||
| * | Create z_size_t and z_ssize_t types. | Mark Adler | 2016-12-04 | 1 | -2/+2 |
| | | | | | | | Normally these are set to size_t and ssize_t. But if they do not exist, then they are set to the smallest integer type that can contain a pointer. size_t is unsigned and ssize_t is signed. | ||||
| * | Clean up gz* function return values. | Mark Adler | 2016-12-04 | 1 | -1/+0 |
| | | | | | | | | In some cases the return values did not match the documentation, or the documentation did not document all of the return values. gzprintf() now consistently returns negative values on error, which matches the behavior of the stdio fprintf() function. | ||||
| * | Fix gzseek() problem on MinGW due to buggy _lseeki64 there. | Mark Adler | 2016-01-29 | 1 | -1/+1 |
| | | |||||
| * | Compile the gzopen_w() function when __CYGWIN__ defined. | Mark Adler | 2015-08-01 | 1 | -4/+4 |
| | | |||||
| * | Improve speed of gzprintf() in transparent mode. | Mark Adler | 2015-07-05 | 1 | -0/+2 |
| | | |||||
| * | Assure that gzoffset() is correct when appending. | Mark Adler | 2014-04-24 | 1 | -1/+3 |
| | | | | | | | | An open() with O_APPEND followed by an lseek() to determine the position will return zero for a non-empty file, even though the next write will start at the end of the file. This commit works around that by doing an lseek() to the end when appending. | ||||
| * | zlib 1.2.7.1v1.2.7.1 | Mark Adler | 2013-03-24 | 1 | -1/+1 |
| | | |||||
| * | Add casts and consts to ease user conversion to C++. | Mark Adler | 2013-03-24 | 1 | -6/+7 |
| | | | | | You would still need to run zlib2ansi on all of the *.c files. | ||||
| * | Clean up the usage of z_const and respect const usage within zlib. | Mark Adler | 2012-08-13 | 1 | -6/+4 |
| | | | | | | | | | | This patch allows zlib to compile cleanly with the -Wcast-qual gcc warning enabled, but only if ZLIB_CONST is defined, which adds const to next_in and msg in z_stream and in the in_func prototype. A --const option is added to ./configure which adds -DZLIB_CONST to the compile flags, and adds -Wcast-qual to the compile flags when ZLIBGCCWARN is set in the environment. | ||||
| * | Fix bug in 'F' mode for gzopen(). | Mark Adler | 2012-05-22 | 1 | -0/+2 |
| | | |||||
| * | Replace use of unsafe string functions with snprintf if available. | Mark Adler | 2012-05-02 | 1 | -0/+13 |
| | | | | | | | | | | | | | This avoids warnings in OpenBSD that apparently can't be turned off whenever you link strcpy, strcat, or sprintf. When snprintf isn't available, the use of the "unsafe" string functions has always in fact been safe, since the lengths are all checked before those functions are called. We do not use strlcpy or strlcat, since they are not (yet) found on all systems. snprintf on the other hand is part of the C standard library and is very common. | ||||
| * | Attempt to convert the wchar_t path in gzopen_w() for errors. | Mark Adler | 2012-03-18 | 1 | -3/+20 |
| | | | | | | | | The conversion to multi-byte will be locale-specific, but it's better than nothing and is only to provide more information in the error message returned by gz_error(). The conversion has no effect on what's opened. | ||||
| * | Fix syntax error in gzlib.c. | Mark Adler | 2012-03-18 | 1 | -1/+1 |
| | | |||||
| * | More fixes for gzopen_w(). | Mark Adler | 2012-03-18 | 1 | -2/+3 |
| | | | | | | | Also need to #include <stddef.h> for zlib.h, and need to workaround the inability to use wide characters in constructed error messages with zlib's interface. | ||||
| * | Fix gzopen_w() type and add #include for the type. | Mark Adler | 2012-03-17 | 1 | -1/+1 |
| | | |||||
| * | Add gzopen_w() in Windows for wide character path names. | Mark Adler | 2012-03-16 | 1 | -16/+32 |
| | | |||||
| * | Update copyright years in gzlib.c. | Mark Adler | 2012-03-10 | 1 | -1/+1 |
| | | |||||
| * | Avoid warnings when O_CLOEXEC or O_EXCL are not defined. | Mark Adler | 2012-03-10 | 1 | -1/+10 |
| | | |||||
| * | Make sure that O_EXCL is used portably. | Mark Adler | 2012-03-04 | 1 | -4/+7 |
| | | |||||
| * | Add "x" (O_EXCL) and "e" (O_CLOEXEC) modes support to gzopen(). | Mark Adler | 2012-03-03 | 1 | -1/+11 |
| | | |||||
| * | Do not use _lseeki64 under Borland C++ [Truta]. | Mark Adler | 2011-12-18 | 1 | -1/+1 |
| | | |||||
| * | Fix gzeof() to behave just like feof() when read is not past end of file. | Mark Adler | 2011-12-11 | 1 | -3/+6 |
| | | | | | | | | | Before, gzeof() would return true (accurately) when the last read request went just up to the end of the uncompressed data. In the analogous case, feof() would return false, only returning true when a read request goes past the end of the file. This patch corrects gzeof() to behave in the same way as feof(), as noted in the zlib.h documentation. | ||||
| * | Add a transparent write mode to gzopen() when 'T' is in the mode. | Mark Adler | 2011-10-02 | 1 | -1/+12 |
| | | |||||
| * | Always add large file support for windows | Tor Lillqvist | 2011-10-01 | 1 | -0/+4 |
| | | |||||
| * | Update copyright dates on gz* source files. | Mark Adler | 2011-09-30 | 1 | -1/+1 |
| | | |||||
| * | Change gzgetc() to a macro for speed (~40% speedup in testing). | Mark Adler | 2011-09-26 | 1 | -17/+21 |
| | | |||||
| * | Simplify gzseek() now that raw after gzip is ignored. | Mark Adler | 2011-09-26 | 1 | -1/+1 |
| | | |||||
| * | Allow gzrewind() and gzseek() after a premature end-of-file. | Mark Adler | 2011-09-26 | 1 | -2/+3 |
| | | |||||
