summaryrefslogtreecommitdiff
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix test/example.c to work with FORCE_STORED.Mark Adler2023-04-181-5/+5
|
* Fix warnings on test/infcover.c.Mark Adler2023-04-171-2/+3
|
* Remove K&R function definitions from zlib.Mark Adler2023-04-152-197/+68
| | | | | | | 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.
* Avoid conversion warning in minigzip.c.Mark Adler2022-10-011-1/+1
|
* Have build test report library version if it doesn't match zlib.h.Mark Adler2022-05-261-1/+2
|
* Don't bother computing check value after successful inflateSync().Mark Adler2019-01-021-3/+2
| | | | | | | | | | | inflateSync() is used to skip invalid deflate data, which means that the check value that was being computed is no longer useful. This commit turns off the check value computation, and furthermore allows a successful return if the compressed data terminated in a graceful manner. This commit also fixes a bug in the case that inflateSync() is used before a header is ever processed. In that case, there is no knowledge of a trailer, so the remainder is treated as raw.
* zlib 1.2.9v1.2.9Mark Adler2016-12-313-3/+3
|
* Avoid some random compiler warnings on various platforms.Mark Adler2016-12-302-5/+6
|
* Allow minigzip to compile when testing with ./configure --solo.Mark Adler2016-12-301-1/+1
|
* Use snprintf() for later versions of Microsoft C.Mark Adler2016-12-301-1/+1
|
* Create z_size_t and z_ssize_t types.Mark Adler2016-12-041-1/+1
| | | | | | 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.
* Make globals in examples local to compilation unit.Mark Adler2016-10-142-4/+4
|
* Avoid use of reallocf() in test/infcover.c.Mark Adler2015-07-281-8/+8
|
* Fix bug in test/example.c where error code not saved.Mark Adler2014-07-021-1/+1
|
* Clean up the usage of z_const and respect const usage within zlib.Mark Adler2012-08-131-4/+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.
* Use _snprintf for snprintf under Microsoft C in test/minigzip.c.Mark Adler2012-06-031-0/+4
|
* Replace use of unsafe string functions with snprintf if available.Mark Adler2012-05-021-0/+16
| | | | | | | | | | | | 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.
* Fix bug in test/minigzip.c for configure --solo.Mark Adler2012-03-031-1/+1
|
* Clean up infcover.c.Mark Adler2011-11-301-11/+9
|
* Test the inflate code with full coverage.Mark Adler2011-11-271-0/+673
| | | | | | | | | Add a cover target in Makefile and the test/infcover.c test program to cover all of the code lines in the inf*.c source files. The coverage is run with memory allocation checking in order to expose memory leaks. The coverage testing is run using: ./configure --cover && make cover
* Move example.c and minigzip.c to test/.Mark Adler2011-11-272-0/+1232