Commit 3806d875 authored by Michaël Zasso's avatar Michaël Zasso Committed by Trevor Norris
Browse files

zlib: prevent uncaught exception in zlibBuffer

If the accumulation of data for the final Buffer is greater than
kMaxLength it will throw an un-catchable RangeError. Instead now pass
the generated error to the callback.

PR-URL: https://github.com/nodejs/io.js/pull/1811


Reviewed-By: default avatarFedor Indutny <fedor@indutny.com>
Reviewed-By: default avatarTrevor Norris <trev.norris@gmail.com>
parent 953b3e75
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment