aboutsummaryrefslogtreecommitdiff
path: root/qnx (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-11-26Fix bug that accepted invalid zlib header when windowBits is zero.Mark Adler1-1/+1
When windowBits is zero, the size of the sliding window comes from the zlib header. The allowed values of the four-bit field are 0..7, but when windowBits is zero, values greater than 7 are permitted and acted upon, resulting in large, mostly unused memory allocations. This fix rejects such invalid zlib headers.
2015-10-04Use a consistent and more modern approach to not use a parameter.Mark Adler1-6/+10
A remarkably creative and diverse set of approaches to letting the compiler know that opaque was being used when it wasn't is changed by this commit to the more standard (void)opaque.
2015-09-16Use UTF-8 for non-ASCII characters in ChangeLog.Mark Adler1-3/+3
2015-09-05Clean up portability for shifts and integer sizes.Mark Adler3-4/+4
2015-09-05Avoid shifts of negative values inflateMark().Mark Adler1-2/+3
The C standard says that bit shifts of negative integers is undefined. This casts to unsigned values to assure a known result.
2015-08-15Fix typo.Mark Adler1-1/+1
2015-08-15Use const for static tree descriptions in deflate.Mark Adler2-4/+4
This is in order to permit shared memory for these structures.
2015-08-02Allow building zlib outside of the source directory.Mark Adler2-61/+197
To build, simply run configure from the source directory by specifying its path. That path will be used to find the source files. The source directory will not be touched. All new and modified files will be made in the current directory. Discovered in the process that not all makes understand % or $<, and not all compilers understand -include or -I-. This required a larger Makefile.in with explicit dependencies.
2015-08-02Do not initialize unsigned with -1 in compress.c uncompr.c.Mark Adler2-2/+2
Sun compiler complained. Use (unsigned)0 - 1 instead.
2015-08-02Align deflateParams() and its documentation in zlib.h.Mark Adler2-14/+27
This updates the documentation to reflect the behavior of deflateParams() when it is not able to compress all of the input data provided so far due to insufficient output space. It also assures that data provided is compressed before the parameter changes, even if at the beginning of the stream.
2015-08-01Compile the gzopen_w() function when __CYGWIN__ defined.Mark Adler3-5/+9
2015-07-28Define _POSIX_SOURCE to enable POSIX extensions on some systems.Mark Adler1-0/+4
2015-07-28Clarify deflateReset() documentation.Mark Adler1-4/+4
It previously could have been misinterpreted to mean that parameter changes after deflateInit2() would be reversed, which is not the case.
2015-07-28Avoid uninitialized access by gzclose_w().Mark Adler2-1/+2
2015-07-28Avoid use of DEBUG macro -- change to ZLIB_DEBUG.Mark Adler14-33/+33
2015-07-28Avoid use of reallocf() in test/infcover.c.Mark Adler1-8/+8
2015-07-28Fix inflateInit2() bug when windowBits is 16 or 32.Mark Adler1-0/+2
A windowBits value of 0, 16, or 32 gets the window bits from the zlib header. However there is no zlib header for 16, or for 32 when the input is gzip. This commit sets the window bits for inflate to 15 if a gzip stream is detected and windowBits was 16 or 32.
2015-07-28Add comment about not using windowBits of 8 for deflate().Mark Adler1-0/+8
2015-07-07Put license in zlib.3 man page.Mark Adler2-9/+27
Previously there was a confusing reference to a "distribution directory".
2015-07-05Improve speed of gzprintf() in transparent mode.Mark Adler4-51/+70
2015-07-05Avoid left shift of a negative value in flush rank calculation.Mark Adler1-1/+1
The C standard permits an undefined result for a left shift of a negative value.
2015-01-26Remedy Coverity warning. [Randers-Pehrson]Mark Adler1-1/+1
2014-12-29Add inflateCodesUsed() function for internal use.Mark Adler1-0/+9
2014-07-02Fix bug in test/example.c where error code not saved.Mark Adler1-1/+1
2014-04-26Note in zlib.h that compress() uses Z_DEFAULT_COMPRESSION.Mark Adler1-1/+2
2014-04-26Fix uncompress() to work on lengths more than a maximum unsigned.Mark Adler1-20/+41
2014-04-26Fix compress() to work on lengths more than a maximum unsigned.Mark Adler1-18/+24
2014-04-24Assure that gzoffset() is correct when appending.Mark Adler1-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.
2013-08-24Improve contrib/blast to return unused bytes. Fix the test codeMark Adler2-15/+43
to report the count of unused bytes at the end correctly. Add the ability to provide initial input to blast().
2013-08-03Fix contrib/minizip to permit unzipping with desktop API [Zouzou].Mark Adler1-3/+4
2013-05-23Spacing cleanup.Mark Adler1-1/+1
2013-05-02Change version number to 1.2.8.1.Mark Adler27-48/+51
2013-04-28zlib 1.2.8v1.2.8Mark Adler4-5/+9
2013-04-28Fix mixed line endings in contrib/vstudio.Mark Adler4-27/+27
2013-04-28Correct spelling error in zlib.h.Mark Adler1-1/+1
2013-04-28Clean up contrib/vstudio [Roß].Mark Adler21-1138/+592
2013-04-28Update some copyright years.Mark Adler2-2/+2
2013-04-28Do not force Z_CONST for C++.Mark Adler3-3/+3
Forcing Z_CONST resulted in an issue when compiling Firefox. Now if someone wants to compile zlib as C++ code (which it isn't), now they will need to #define Z_CONST themselves.
2013-04-28Update contrib/minizip/iowin32.c for Windows RT [Vollant].Mark Adler1-13/+85
2013-04-28Change version number to 1.2.8.Mark Adler29-54/+57
2013-04-13zlib 1.2.7.3v1.2.7.3Mark Adler4-5/+5
2013-04-13Fix version numbers and DLL names in contrib/vstudio/*/zlib.rc.Mark Adler5-17/+17
2013-04-13Change version number to 1.2.7.3.Mark Adler24-43/+46
2013-04-13zlib 1.2.7.2v1.2.7.2Mark Adler4-4/+6
2013-04-13Add casts in gzwrite.c for pointer differences.Mark Adler2-3/+4
2013-04-13Fix typo in win32/Makefile.msc.Mark Adler1-1/+1
2013-04-13Change check for a four-byte type back to hexadecimal.Mark Adler3-9/+9
2013-04-13Change version number to 1.2.7.2.Mark Adler24-48/+51
2013-03-24zlib 1.2.7.1v1.2.7.1Mark Adler16-20/+67
2013-03-24Line length cleanup.Mark Adler2-2/+3