You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zlib throws an exception when trying to decompress a previously compressed empty buffer. The code below does not enter any catch block in node 8.x.x, but enters all of them in node 9.1.0. It seems like the compression part behaves exactly the same in 8.x.x and 9.1.0, but the decompression part definitely not.
add4b0a made the assumption that compressed data
would never lead to an empty decompressed stream.
Fix that by explicitly checking the number of read bytes.
Fixes: nodejs#17041
Refs: nodejs#13322
Zlib throws an exception when trying to decompress a previously compressed empty buffer. The code below does not enter any
catch
block in node 8.x.x, but enters all of them in node 9.1.0. It seems like the compression part behaves exactly the same in 8.x.x and 9.1.0, but the decompression part definitely not.(edited by @addaleax: syntax highlighting)
The text was updated successfully, but these errors were encountered: