1275793eaSopenharmony_ci
2275793eaSopenharmony_ci                Frequently Asked Questions about zlib
3275793eaSopenharmony_ci
4275793eaSopenharmony_ci
5275793eaSopenharmony_ciIf your question is not there, please check the zlib home page
6275793eaSopenharmony_cihttp://zlib.net/ which may have more recent information.
7275793eaSopenharmony_ciThe latest zlib FAQ is at http://zlib.net/zlib_faq.html
8275793eaSopenharmony_ci
9275793eaSopenharmony_ci
10275793eaSopenharmony_ci 1. Is zlib Y2K-compliant?
11275793eaSopenharmony_ci
12275793eaSopenharmony_ci    Yes. zlib doesn't handle dates.
13275793eaSopenharmony_ci
14275793eaSopenharmony_ci 2. Where can I get a Windows DLL version?
15275793eaSopenharmony_ci
16275793eaSopenharmony_ci    The zlib sources can be compiled without change to produce a DLL.  See the
17275793eaSopenharmony_ci    file win32/DLL_FAQ.txt in the zlib distribution.
18275793eaSopenharmony_ci
19275793eaSopenharmony_ci 3. Where can I get a Visual Basic interface to zlib?
20275793eaSopenharmony_ci
21275793eaSopenharmony_ci    See
22275793eaSopenharmony_ci        * http://marknelson.us/1997/01/01/zlib-engine/
23275793eaSopenharmony_ci        * win32/DLL_FAQ.txt in the zlib distribution
24275793eaSopenharmony_ci
25275793eaSopenharmony_ci 4. compress() returns Z_BUF_ERROR.
26275793eaSopenharmony_ci
27275793eaSopenharmony_ci    Make sure that before the call of compress(), the length of the compressed
28275793eaSopenharmony_ci    buffer is equal to the available size of the compressed buffer and not
29275793eaSopenharmony_ci    zero.  For Visual Basic, check that this parameter is passed by reference
30275793eaSopenharmony_ci    ("as any"), not by value ("as long").
31275793eaSopenharmony_ci
32275793eaSopenharmony_ci 5. deflate() or inflate() returns Z_BUF_ERROR.
33275793eaSopenharmony_ci
34275793eaSopenharmony_ci    Before making the call, make sure that avail_in and avail_out are not zero.
35275793eaSopenharmony_ci    When setting the parameter flush equal to Z_FINISH, also make sure that
36275793eaSopenharmony_ci    avail_out is big enough to allow processing all pending input.  Note that a
37275793eaSopenharmony_ci    Z_BUF_ERROR is not fatal--another call to deflate() or inflate() can be
38275793eaSopenharmony_ci    made with more input or output space.  A Z_BUF_ERROR may in fact be
39275793eaSopenharmony_ci    unavoidable depending on how the functions are used, since it is not
40275793eaSopenharmony_ci    possible to tell whether or not there is more output pending when
41275793eaSopenharmony_ci    strm.avail_out returns with zero.  See http://zlib.net/zlib_how.html for a
42275793eaSopenharmony_ci    heavily annotated example.
43275793eaSopenharmony_ci
44275793eaSopenharmony_ci 6. Where's the zlib documentation (man pages, etc.)?
45275793eaSopenharmony_ci
46275793eaSopenharmony_ci    It's in zlib.h .  Examples of zlib usage are in the files test/example.c
47275793eaSopenharmony_ci    and test/minigzip.c, with more in examples/ .
48275793eaSopenharmony_ci
49275793eaSopenharmony_ci 7. Why don't you use GNU autoconf or libtool or ...?
50275793eaSopenharmony_ci
51275793eaSopenharmony_ci    Because we would like to keep zlib as a very small and simple package.
52275793eaSopenharmony_ci    zlib is rather portable and doesn't need much configuration.
53275793eaSopenharmony_ci
54275793eaSopenharmony_ci 8. I found a bug in zlib.
55275793eaSopenharmony_ci
56275793eaSopenharmony_ci    Most of the time, such problems are due to an incorrect usage of zlib.
57275793eaSopenharmony_ci    Please try to reproduce the problem with a small program and send the
58275793eaSopenharmony_ci    corresponding source to us at zlib@gzip.org .  Do not send multi-megabyte
59275793eaSopenharmony_ci    data files without prior agreement.
60275793eaSopenharmony_ci
61275793eaSopenharmony_ci 9. Why do I get "undefined reference to gzputc"?
62275793eaSopenharmony_ci
63275793eaSopenharmony_ci    If "make test" produces something like
64275793eaSopenharmony_ci
65275793eaSopenharmony_ci       example.o(.text+0x154): undefined reference to `gzputc'
66275793eaSopenharmony_ci
67275793eaSopenharmony_ci    check that you don't have old files libz.* in /usr/lib, /usr/local/lib or
68275793eaSopenharmony_ci    /usr/X11R6/lib. Remove any old versions, then do "make install".
69275793eaSopenharmony_ci
70275793eaSopenharmony_ci10. I need a Delphi interface to zlib.
71275793eaSopenharmony_ci
72275793eaSopenharmony_ci    See the contrib/delphi directory in the zlib distribution.
73275793eaSopenharmony_ci
74275793eaSopenharmony_ci11. Can zlib handle .zip archives?
75275793eaSopenharmony_ci
76275793eaSopenharmony_ci    Not by itself, no.  See the directory contrib/minizip in the zlib
77275793eaSopenharmony_ci    distribution.
78275793eaSopenharmony_ci
79275793eaSopenharmony_ci12. Can zlib handle .Z files?
80275793eaSopenharmony_ci
81275793eaSopenharmony_ci    No, sorry.  You have to spawn an uncompress or gunzip subprocess, or adapt
82275793eaSopenharmony_ci    the code of uncompress on your own.
83275793eaSopenharmony_ci
84275793eaSopenharmony_ci13. How can I make a Unix shared library?
85275793eaSopenharmony_ci
86275793eaSopenharmony_ci    By default a shared (and a static) library is built for Unix.  So:
87275793eaSopenharmony_ci
88275793eaSopenharmony_ci    make distclean
89275793eaSopenharmony_ci    ./configure
90275793eaSopenharmony_ci    make
91275793eaSopenharmony_ci
92275793eaSopenharmony_ci14. How do I install a shared zlib library on Unix?
93275793eaSopenharmony_ci
94275793eaSopenharmony_ci    After the above, then:
95275793eaSopenharmony_ci
96275793eaSopenharmony_ci    make install
97275793eaSopenharmony_ci
98275793eaSopenharmony_ci    However, many flavors of Unix come with a shared zlib already installed.
99275793eaSopenharmony_ci    Before going to the trouble of compiling a shared version of zlib and
100275793eaSopenharmony_ci    trying to install it, you may want to check if it's already there!  If you
101275793eaSopenharmony_ci    can #include <zlib.h>, it's there.  The -lz option will probably link to
102275793eaSopenharmony_ci    it.  You can check the version at the top of zlib.h or with the
103275793eaSopenharmony_ci    ZLIB_VERSION symbol defined in zlib.h .
104275793eaSopenharmony_ci
105275793eaSopenharmony_ci15. I have a question about OttoPDF.
106275793eaSopenharmony_ci
107275793eaSopenharmony_ci    We are not the authors of OttoPDF. The real author is on the OttoPDF web
108275793eaSopenharmony_ci    site: Joel Hainley, jhainley@myndkryme.com.
109275793eaSopenharmony_ci
110275793eaSopenharmony_ci16. Can zlib decode Flate data in an Adobe PDF file?
111275793eaSopenharmony_ci
112275793eaSopenharmony_ci    Yes. See http://www.pdflib.com/ . To modify PDF forms, see
113275793eaSopenharmony_ci    http://sourceforge.net/projects/acroformtool/ .
114275793eaSopenharmony_ci
115275793eaSopenharmony_ci17. Why am I getting this "register_frame_info not found" error on Solaris?
116275793eaSopenharmony_ci
117275793eaSopenharmony_ci    After installing zlib 1.1.4 on Solaris 2.6, running applications using zlib
118275793eaSopenharmony_ci    generates an error such as:
119275793eaSopenharmony_ci
120275793eaSopenharmony_ci        ld.so.1: rpm: fatal: relocation error: file /usr/local/lib/libz.so:
121275793eaSopenharmony_ci        symbol __register_frame_info: referenced symbol not found
122275793eaSopenharmony_ci
123275793eaSopenharmony_ci    The symbol __register_frame_info is not part of zlib, it is generated by
124275793eaSopenharmony_ci    the C compiler (cc or gcc).  You must recompile applications using zlib
125275793eaSopenharmony_ci    which have this problem.  This problem is specific to Solaris.  See
126275793eaSopenharmony_ci    http://www.sunfreeware.com for Solaris versions of zlib and applications
127275793eaSopenharmony_ci    using zlib.
128275793eaSopenharmony_ci
129275793eaSopenharmony_ci18. Why does gzip give an error on a file I make with compress/deflate?
130275793eaSopenharmony_ci
131275793eaSopenharmony_ci    The compress and deflate functions produce data in the zlib format, which
132275793eaSopenharmony_ci    is different and incompatible with the gzip format.  The gz* functions in
133275793eaSopenharmony_ci    zlib on the other hand use the gzip format.  Both the zlib and gzip formats
134275793eaSopenharmony_ci    use the same compressed data format internally, but have different headers
135275793eaSopenharmony_ci    and trailers around the compressed data.
136275793eaSopenharmony_ci
137275793eaSopenharmony_ci19. Ok, so why are there two different formats?
138275793eaSopenharmony_ci
139275793eaSopenharmony_ci    The gzip format was designed to retain the directory information about a
140275793eaSopenharmony_ci    single file, such as the name and last modification date.  The zlib format
141275793eaSopenharmony_ci    on the other hand was designed for in-memory and communication channel
142275793eaSopenharmony_ci    applications, and has a much more compact header and trailer and uses a
143275793eaSopenharmony_ci    faster integrity check than gzip.
144275793eaSopenharmony_ci
145275793eaSopenharmony_ci20. Well that's nice, but how do I make a gzip file in memory?
146275793eaSopenharmony_ci
147275793eaSopenharmony_ci    You can request that deflate write the gzip format instead of the zlib
148275793eaSopenharmony_ci    format using deflateInit2().  You can also request that inflate decode the
149275793eaSopenharmony_ci    gzip format using inflateInit2().  Read zlib.h for more details.
150275793eaSopenharmony_ci
151275793eaSopenharmony_ci21. Is zlib thread-safe?
152275793eaSopenharmony_ci
153275793eaSopenharmony_ci    Yes.  However any library routines that zlib uses and any application-
154275793eaSopenharmony_ci    provided memory allocation routines must also be thread-safe.  zlib's gz*
155275793eaSopenharmony_ci    functions use stdio library routines, and most of zlib's functions use the
156275793eaSopenharmony_ci    library memory allocation routines by default.  zlib's *Init* functions
157275793eaSopenharmony_ci    allow for the application to provide custom memory allocation routines.
158275793eaSopenharmony_ci
159275793eaSopenharmony_ci    Of course, you should only operate on any given zlib or gzip stream from a
160275793eaSopenharmony_ci    single thread at a time.
161275793eaSopenharmony_ci
162275793eaSopenharmony_ci22. Can I use zlib in my commercial application?
163275793eaSopenharmony_ci
164275793eaSopenharmony_ci    Yes.  Please read the license in zlib.h.
165275793eaSopenharmony_ci
166275793eaSopenharmony_ci23. Is zlib under the GNU license?
167275793eaSopenharmony_ci
168275793eaSopenharmony_ci    No.  Please read the license in zlib.h.
169275793eaSopenharmony_ci
170275793eaSopenharmony_ci24. The license says that altered source versions must be "plainly marked". So
171275793eaSopenharmony_ci    what exactly do I need to do to meet that requirement?
172275793eaSopenharmony_ci
173275793eaSopenharmony_ci    You need to change the ZLIB_VERSION and ZLIB_VERNUM #defines in zlib.h.  In
174275793eaSopenharmony_ci    particular, the final version number needs to be changed to "f", and an
175275793eaSopenharmony_ci    identification string should be appended to ZLIB_VERSION.  Version numbers
176275793eaSopenharmony_ci    x.x.x.f are reserved for modifications to zlib by others than the zlib
177275793eaSopenharmony_ci    maintainers.  For example, if the version of the base zlib you are altering
178275793eaSopenharmony_ci    is "1.2.3.4", then in zlib.h you should change ZLIB_VERNUM to 0x123f, and
179275793eaSopenharmony_ci    ZLIB_VERSION to something like "1.2.3.f-zachary-mods-v3".  You can also
180275793eaSopenharmony_ci    update the version strings in deflate.c and inftrees.c.
181275793eaSopenharmony_ci
182275793eaSopenharmony_ci    For altered source distributions, you should also note the origin and
183275793eaSopenharmony_ci    nature of the changes in zlib.h, as well as in ChangeLog and README, along
184275793eaSopenharmony_ci    with the dates of the alterations.  The origin should include at least your
185275793eaSopenharmony_ci    name (or your company's name), and an email address to contact for help or
186275793eaSopenharmony_ci    issues with the library.
187275793eaSopenharmony_ci
188275793eaSopenharmony_ci    Note that distributing a compiled zlib library along with zlib.h and
189275793eaSopenharmony_ci    zconf.h is also a source distribution, and so you should change
190275793eaSopenharmony_ci    ZLIB_VERSION and ZLIB_VERNUM and note the origin and nature of the changes
191275793eaSopenharmony_ci    in zlib.h as you would for a full source distribution.
192275793eaSopenharmony_ci
193275793eaSopenharmony_ci25. Will zlib work on a big-endian or little-endian architecture, and can I
194275793eaSopenharmony_ci    exchange compressed data between them?
195275793eaSopenharmony_ci
196275793eaSopenharmony_ci    Yes and yes.
197275793eaSopenharmony_ci
198275793eaSopenharmony_ci26. Will zlib work on a 64-bit machine?
199275793eaSopenharmony_ci
200275793eaSopenharmony_ci    Yes.  It has been tested on 64-bit machines, and has no dependence on any
201275793eaSopenharmony_ci    data types being limited to 32-bits in length.  If you have any
202275793eaSopenharmony_ci    difficulties, please provide a complete problem report to zlib@gzip.org
203275793eaSopenharmony_ci
204275793eaSopenharmony_ci27. Will zlib decompress data from the PKWare Data Compression Library?
205275793eaSopenharmony_ci
206275793eaSopenharmony_ci    No.  The PKWare DCL uses a completely different compressed data format than
207275793eaSopenharmony_ci    does PKZIP and zlib.  However, you can look in zlib's contrib/blast
208275793eaSopenharmony_ci    directory for a possible solution to your problem.
209275793eaSopenharmony_ci
210275793eaSopenharmony_ci28. Can I access data randomly in a compressed stream?
211275793eaSopenharmony_ci
212275793eaSopenharmony_ci    No, not without some preparation.  If when compressing you periodically use
213275793eaSopenharmony_ci    Z_FULL_FLUSH, carefully write all the pending data at those points, and
214275793eaSopenharmony_ci    keep an index of those locations, then you can start decompression at those
215275793eaSopenharmony_ci    points.  You have to be careful to not use Z_FULL_FLUSH too often, since it
216275793eaSopenharmony_ci    can significantly degrade compression.  Alternatively, you can scan a
217275793eaSopenharmony_ci    deflate stream once to generate an index, and then use that index for
218275793eaSopenharmony_ci    random access.  See examples/zran.c .
219275793eaSopenharmony_ci
220275793eaSopenharmony_ci29. Does zlib work on MVS, OS/390, CICS, etc.?
221275793eaSopenharmony_ci
222275793eaSopenharmony_ci    It has in the past, but we have not heard of any recent evidence.  There
223275793eaSopenharmony_ci    were working ports of zlib 1.1.4 to MVS, but those links no longer work.
224275793eaSopenharmony_ci    If you know of recent, successful applications of zlib on these operating
225275793eaSopenharmony_ci    systems, please let us know.  Thanks.
226275793eaSopenharmony_ci
227275793eaSopenharmony_ci30. Is there some simpler, easier to read version of inflate I can look at to
228275793eaSopenharmony_ci    understand the deflate format?
229275793eaSopenharmony_ci
230275793eaSopenharmony_ci    First off, you should read RFC 1951.  Second, yes.  Look in zlib's
231275793eaSopenharmony_ci    contrib/puff directory.
232275793eaSopenharmony_ci
233275793eaSopenharmony_ci31. Does zlib infringe on any patents?
234275793eaSopenharmony_ci
235275793eaSopenharmony_ci    As far as we know, no.  In fact, that was originally the whole point behind
236275793eaSopenharmony_ci    zlib.  Look here for some more information:
237275793eaSopenharmony_ci
238275793eaSopenharmony_ci    http://www.gzip.org/#faq11
239275793eaSopenharmony_ci
240275793eaSopenharmony_ci32. Can zlib work with greater than 4 GB of data?
241275793eaSopenharmony_ci
242275793eaSopenharmony_ci    Yes.  inflate() and deflate() will process any amount of data correctly.
243275793eaSopenharmony_ci    Each call of inflate() or deflate() is limited to input and output chunks
244275793eaSopenharmony_ci    of the maximum value that can be stored in the compiler's "unsigned int"
245275793eaSopenharmony_ci    type, but there is no limit to the number of chunks.  Note however that the
246275793eaSopenharmony_ci    strm.total_in and strm_total_out counters may be limited to 4 GB.  These
247275793eaSopenharmony_ci    counters are provided as a convenience and are not used internally by
248275793eaSopenharmony_ci    inflate() or deflate().  The application can easily set up its own counters
249275793eaSopenharmony_ci    updated after each call of inflate() or deflate() to count beyond 4 GB.
250275793eaSopenharmony_ci    compress() and uncompress() may be limited to 4 GB, since they operate in a
251275793eaSopenharmony_ci    single call.  gzseek() and gztell() may be limited to 4 GB depending on how
252275793eaSopenharmony_ci    zlib is compiled.  See the zlibCompileFlags() function in zlib.h.
253275793eaSopenharmony_ci
254275793eaSopenharmony_ci    The word "may" appears several times above since there is a 4 GB limit only
255275793eaSopenharmony_ci    if the compiler's "long" type is 32 bits.  If the compiler's "long" type is
256275793eaSopenharmony_ci    64 bits, then the limit is 16 exabytes.
257275793eaSopenharmony_ci
258275793eaSopenharmony_ci33. Does zlib have any security vulnerabilities?
259275793eaSopenharmony_ci
260275793eaSopenharmony_ci    The only one that we are aware of is potentially in gzprintf().  If zlib is
261275793eaSopenharmony_ci    compiled to use sprintf() or vsprintf(), then there is no protection
262275793eaSopenharmony_ci    against a buffer overflow of an 8K string space (or other value as set by
263275793eaSopenharmony_ci    gzbuffer()), other than the caller of gzprintf() assuring that the output
264275793eaSopenharmony_ci    will not exceed 8K.  On the other hand, if zlib is compiled to use
265275793eaSopenharmony_ci    snprintf() or vsnprintf(), which should normally be the case, then there is
266275793eaSopenharmony_ci    no vulnerability.  The ./configure script will display warnings if an
267275793eaSopenharmony_ci    insecure variation of sprintf() will be used by gzprintf().  Also the
268275793eaSopenharmony_ci    zlibCompileFlags() function will return information on what variant of
269275793eaSopenharmony_ci    sprintf() is used by gzprintf().
270275793eaSopenharmony_ci
271275793eaSopenharmony_ci    If you don't have snprintf() or vsnprintf() and would like one, you can
272275793eaSopenharmony_ci    find a portable implementation here:
273275793eaSopenharmony_ci
274275793eaSopenharmony_ci        http://www.ijs.si/software/snprintf/
275275793eaSopenharmony_ci
276275793eaSopenharmony_ci    Note that you should be using the most recent version of zlib.  Versions
277275793eaSopenharmony_ci    1.1.3 and before were subject to a double-free vulnerability, and versions
278275793eaSopenharmony_ci    1.2.1 and 1.2.2 were subject to an access exception when decompressing
279275793eaSopenharmony_ci    invalid compressed data.
280275793eaSopenharmony_ci
281275793eaSopenharmony_ci34. Is there a Java version of zlib?
282275793eaSopenharmony_ci
283275793eaSopenharmony_ci    Probably what you want is to use zlib in Java. zlib is already included
284275793eaSopenharmony_ci    as part of the Java SDK in the java.util.zip package. If you really want
285275793eaSopenharmony_ci    a version of zlib written in the Java language, look on the zlib home
286275793eaSopenharmony_ci    page for links: http://zlib.net/ .
287275793eaSopenharmony_ci
288275793eaSopenharmony_ci35. I get this or that compiler or source-code scanner warning when I crank it
289275793eaSopenharmony_ci    up to maximally-pedantic. Can't you guys write proper code?
290275793eaSopenharmony_ci
291275793eaSopenharmony_ci    Many years ago, we gave up attempting to avoid warnings on every compiler
292275793eaSopenharmony_ci    in the universe.  It just got to be a waste of time, and some compilers
293275793eaSopenharmony_ci    were downright silly as well as contradicted each other.  So now, we simply
294275793eaSopenharmony_ci    make sure that the code always works.
295275793eaSopenharmony_ci
296275793eaSopenharmony_ci36. Valgrind (or some similar memory access checker) says that deflate is
297275793eaSopenharmony_ci    performing a conditional jump that depends on an uninitialized value.
298275793eaSopenharmony_ci    Isn't that a bug?
299275793eaSopenharmony_ci
300275793eaSopenharmony_ci    No.  That is intentional for performance reasons, and the output of deflate
301275793eaSopenharmony_ci    is not affected.  This only started showing up recently since zlib 1.2.x
302275793eaSopenharmony_ci    uses malloc() by default for allocations, whereas earlier versions used
303275793eaSopenharmony_ci    calloc(), which zeros out the allocated memory.  Even though the code was
304275793eaSopenharmony_ci    correct, versions 1.2.4 and later was changed to not stimulate these
305275793eaSopenharmony_ci    checkers.
306275793eaSopenharmony_ci
307275793eaSopenharmony_ci37. Will zlib read the (insert any ancient or arcane format here) compressed
308275793eaSopenharmony_ci    data format?
309275793eaSopenharmony_ci
310275793eaSopenharmony_ci    Probably not. Look in the comp.compression FAQ for pointers to various
311275793eaSopenharmony_ci    formats and associated software.
312275793eaSopenharmony_ci
313275793eaSopenharmony_ci38. How can I encrypt/decrypt zip files with zlib?
314275793eaSopenharmony_ci
315275793eaSopenharmony_ci    zlib doesn't support encryption.  The original PKZIP encryption is very
316275793eaSopenharmony_ci    weak and can be broken with freely available programs.  To get strong
317275793eaSopenharmony_ci    encryption, use GnuPG, http://www.gnupg.org/ , which already includes zlib
318275793eaSopenharmony_ci    compression.  For PKZIP compatible "encryption", look at
319275793eaSopenharmony_ci    http://www.info-zip.org/
320275793eaSopenharmony_ci
321275793eaSopenharmony_ci39. What's the difference between the "gzip" and "deflate" HTTP 1.1 encodings?
322275793eaSopenharmony_ci
323275793eaSopenharmony_ci    "gzip" is the gzip format, and "deflate" is the zlib format.  They should
324275793eaSopenharmony_ci    probably have called the second one "zlib" instead to avoid confusion with
325275793eaSopenharmony_ci    the raw deflate compressed data format.  While the HTTP 1.1 RFC 2616
326275793eaSopenharmony_ci    correctly points to the zlib specification in RFC 1950 for the "deflate"
327275793eaSopenharmony_ci    transfer encoding, there have been reports of servers and browsers that
328275793eaSopenharmony_ci    incorrectly produce or expect raw deflate data per the deflate
329275793eaSopenharmony_ci    specification in RFC 1951, most notably Microsoft.  So even though the
330275793eaSopenharmony_ci    "deflate" transfer encoding using the zlib format would be the more
331275793eaSopenharmony_ci    efficient approach (and in fact exactly what the zlib format was designed
332275793eaSopenharmony_ci    for), using the "gzip" transfer encoding is probably more reliable due to
333275793eaSopenharmony_ci    an unfortunate choice of name on the part of the HTTP 1.1 authors.
334275793eaSopenharmony_ci
335275793eaSopenharmony_ci    Bottom line: use the gzip format for HTTP 1.1 encoding.
336275793eaSopenharmony_ci
337275793eaSopenharmony_ci40. Does zlib support the new "Deflate64" format introduced by PKWare?
338275793eaSopenharmony_ci
339275793eaSopenharmony_ci    No.  PKWare has apparently decided to keep that format proprietary, since
340275793eaSopenharmony_ci    they have not documented it as they have previous compression formats.  In
341275793eaSopenharmony_ci    any case, the compression improvements are so modest compared to other more
342275793eaSopenharmony_ci    modern approaches, that it's not worth the effort to implement.
343275793eaSopenharmony_ci
344275793eaSopenharmony_ci41. I'm having a problem with the zip functions in zlib, can you help?
345275793eaSopenharmony_ci
346275793eaSopenharmony_ci    There are no zip functions in zlib.  You are probably using minizip by
347275793eaSopenharmony_ci    Giles Vollant, which is found in the contrib directory of zlib.  It is not
348275793eaSopenharmony_ci    part of zlib.  In fact none of the stuff in contrib is part of zlib.  The
349275793eaSopenharmony_ci    files in there are not supported by the zlib authors.  You need to contact
350275793eaSopenharmony_ci    the authors of the respective contribution for help.
351275793eaSopenharmony_ci
352275793eaSopenharmony_ci42. The match.asm code in contrib is under the GNU General Public License.
353275793eaSopenharmony_ci    Since it's part of zlib, doesn't that mean that all of zlib falls under the
354275793eaSopenharmony_ci    GNU GPL?
355275793eaSopenharmony_ci
356275793eaSopenharmony_ci    No.  The files in contrib are not part of zlib.  They were contributed by
357275793eaSopenharmony_ci    other authors and are provided as a convenience to the user within the zlib
358275793eaSopenharmony_ci    distribution.  Each item in contrib has its own license.
359275793eaSopenharmony_ci
360275793eaSopenharmony_ci43. Is zlib subject to export controls?  What is its ECCN?
361275793eaSopenharmony_ci
362275793eaSopenharmony_ci    zlib is not subject to export controls, and so is classified as EAR99.
363275793eaSopenharmony_ci
364275793eaSopenharmony_ci44. Can you please sign these lengthy legal documents and fax them back to us
365275793eaSopenharmony_ci    so that we can use your software in our product?
366275793eaSopenharmony_ci
367275793eaSopenharmony_ci    No. Go away. Shoo.
368