aboutsummaryrefslogtreecommitdiff
path: root/zlib.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2016-10-24 16:00:51 -0700
committerMark Adler <madler@alumni.caltech.edu>2016-10-24 16:00:51 -0700
commit77fd7e56bfc75b4194145060bb1ec5256ce077c6 (patch)
treef0e320b14549aa004764d029a38de080363156df /zlib.h
parent049578f0a1849f502834167e233f4c1d52ddcbcc (diff)
downloadzlib-77fd7e56bfc75b4194145060bb1ec5256ce077c6.tar.gz
zlib-77fd7e56bfc75b4194145060bb1ec5256ce077c6.tar.bz2
zlib-77fd7e56bfc75b4194145060bb1ec5256ce077c6.zip
Document the rejection of 256-byte window requests in zlib.h.
Diffstat (limited to 'zlib.h')
-rw-r--r--zlib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/zlib.h b/zlib.h
index 8285dac..f6b4894 100644
--- a/zlib.h
+++ b/zlib.h
@@ -563,6 +563,10 @@ ZEXTERN int ZEXPORT deflateInit2 OF((z_streamp strm,
563 header crc, and the operating system will be set to 255 (unknown). If a 563 header crc, and the operating system will be set to 255 (unknown). If a
564 gzip stream is being written, strm->adler is a crc32 instead of an adler32. 564 gzip stream is being written, strm->adler is a crc32 instead of an adler32.
565 565
566 For raw deflate or gzip encoding, a request for a 256-byte window is
567 rejected as invalid, since only the zlib header provides a means of
568 transmitting the window size to the decompressor.
569
566 The memLevel parameter specifies how much memory should be allocated 570 The memLevel parameter specifies how much memory should be allocated
567 for the internal compression state. memLevel=1 uses minimum memory but is 571 for the internal compression state. memLevel=1 uses minimum memory but is
568 slow and reduces compression ratio; memLevel=9 uses maximum memory for 572 slow and reduces compression ratio; memLevel=9 uses maximum memory for