Files
node/lib
Myles Borins f5defa2a7c zlib: gracefully set windowBits from 8 to 9
On 4 April 2017, Node.js versions v4.8.2 and v6.10.2 were
released. These versions bumped the vendored zlib library from
v1.2.8 to v1.2.11 in response to what it describes as low-severity
CVEs. In zlib v1.2.9, a change was made that causes an error to be
raised when a raw deflate stream is initialised with windowBits set
to 8.

In zlib v1.2.9, 8 become an invalid value for this parameter, and Node's zlib
module will crash if you call this:

```
zlib.createDeflateRaw({windowBits: 8})
```

On some versions this crashes Node and you cannot recover from it, while on some
versions it throws an exception. The permessage-deflate library up to
version v0.1.5 does make such a call with no try/catch

This commit reverts to the original behavior of zlib by gracefully changed
windowBits: 8 to windowBits: 9 for raw deflate streams.

PR-URL: https://github.com/nodejs-private/node-private/pull/95
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
2017-10-24 11:02:19 -04:00
..
2017-01-31 20:04:27 -05:00
2017-03-08 17:29:27 -08:00
2017-03-08 17:29:47 -08:00
2016-10-26 14:09:01 -04:00
2016-10-26 14:09:18 -04:00
2017-01-31 20:04:27 -05:00
2017-01-31 20:04:27 -05:00
2017-03-08 17:29:19 -08:00
2016-03-02 14:01:11 -08:00
2016-12-13 16:25:30 -05:00
2016-11-14 11:39:59 -05:00
2015-01-31 23:47:29 -05:00