Files
node/lib
Alexey Orlenko 55cbe24c60 zlib: fix node crashing on invalid options
This is a partial backport of semver-patch bits of
9e4660b518.

This commit fixes the Node process crashing when constructors of classes
of the zlib module are given invalid options.

* Throw an Error when the zlib library rejects the value of windowBits,
  instead of crashing with an assertion.

* Treat windowBits and memLevel options consistently with other ones and
  don't crash when non-numeric values are given.

PR-URL: https://github.com/nodejs/node/pull/13098
Backport-PR-URL: https://github.com/nodejs/node/pull/13201
Fixes: https://github.com/nodejs/node/issues/13082
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
2017-07-11 17:42:58 +01:00
..
2015-10-08 17:32:08 -07:00
2016-12-20 14:42:45 -05:00
2017-03-08 17:11:24 -08:00
2017-03-08 17:11:23 -08:00
2016-10-11 12:31:51 -04:00
2017-03-08 17:11:24 -08:00
2017-03-08 17:10:34 -08:00