Handle invalid deflate frames:

This fixes a problem where an assert is generated or an
error is ignored when an invalid deflate stream is produced
after appending the final empty deflate block.
This commit is contained in:
Vinnie Falco committed 2017-12-04 12:05:36 -08:00
1 parent 1b86bc3c36
commit 4053c1bb09
7 files changed
+206 -18

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ public:
switch(static_cast<error>(ev))
{
case error::need_buffers: return "need buffers";
case error::end_of_stream: return "end of stream";
case error::end_of_stream: return "unexpected end of deflate stream";
case error::stream_error: return "stream error";
case error::invalid_block_type: return "invalid block type";