aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc/src/zlib.xml
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-03-06 13:26:33 +0100
committerSverker Eriksson <[email protected]>2017-03-06 13:26:33 +0100
commitb468fb90b447bbd99d351449d90f2775e84ed4f2 (patch)
treeee5d0d0ad8db7f278f0dbc22dfd994b9336ff7f0 /erts/doc/src/zlib.xml
parent7b751e813f13dffc75dd615cbd0666d426a893e1 (diff)
parentedfdd488e5da5907313cbf9f0a0539c53b9864e6 (diff)
downloadotp-b468fb90b447bbd99d351449d90f2775e84ed4f2.tar.gz
otp-b468fb90b447bbd99d351449d90f2775e84ed4f2.tar.bz2
otp-b468fb90b447bbd99d351449d90f2775e84ed4f2.zip
Merge branch 'maint'
Diffstat (limited to 'erts/doc/src/zlib.xml')
-rw-r--r--erts/doc/src/zlib.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/erts/doc/src/zlib.xml b/erts/doc/src/zlib.xml
index e1924fffee..96b4e09580 100644
--- a/erts/doc/src/zlib.xml
+++ b/erts/doc/src/zlib.xml
@@ -315,6 +315,15 @@ list_to_binary([B1,B2])</pre>
<c><anno>WindowBits</anno></c> value suppresses the zlib header
(and checksum) from the stream. Notice that the zlib source
mentions this only as a undocumented feature.</p>
+ <warning>
+ <p>Due to a known bug in zlib, <c>WindowsBits</c> values 8 and -8
+ do not work as expected. In zlib versions before 1.2.9 values
+ 8 and -8 are automatically changed to 9 and -9. <em>From zlib version 1.2.9
+ value -8 is rejected</em> causing <c>zlib:deflateInit/6</c> to fail
+ (8 is still changed to 9). It also seem possible that future versions
+ of zlib may fix this bug and start accepting 8 and -8 as is.</p>
+ <p>Conclusion: Avoid values 8 and -8 unless you know your zlib version supports them.</p>
+ </warning>
</item>
<tag><c><anno>MemLevel</anno></c></tag>
<item>