summaryrefslogtreecommitdiff
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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