The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / test / simple / test-zlib-dictionary-fail.js @ 6f043940

History | View | Annotate | Download (1.91 KB)

# Date Author Comment
d7bf7ed9 01/22/2013 07:34 AM Ben Noordhuis

zlib: don't assert on malformed dictionary

Handle Z_DATA_ERROR errors from inflateSetDictionary() gracefully.
Fixes the following assertion:

node: ../src/node_zlib.cc:167: static void node::ZCtx::Process
(uv_work_t*): Assertion `ctx->err_ == 0 && "Failed to set...
1c32eb4a 01/22/2013 07:34 AM Ben Noordhuis

zlib: don't assert on missing dictionary

Handle Z_NEED_DICT errors graciously. Fixes the following assertion:

node: ../src/node_zlib.cc:161: static void node::ZCtx::Process
(uv_work_t*): Assertion`ctx->dictionary_ != __null && "Stream
has no dictionary"' failed....