diff --git a/test/beast/zlib/inflate_stream.cpp b/test/beast/zlib/inflate_stream.cpp index 09503bda..02956a8e 100644 --- a/test/beast/zlib/inflate_stream.cpp +++ b/test/beast/zlib/inflate_stream.cpp @@ -411,6 +411,20 @@ public: check({0x0c, 0xc0, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0xff, 0x6b, 0x04, 0x00}, error::invalid_distance); + check({0x05,0xe0, 0x81, 0x91, 0x24, 0xcb, 0xb2, 0x2c, + 0x49, 0xe2, 0x0f, 0x2e, 0x8b, 0x9a, 0x47, 0x56, + 0x9f, 0xfb, 0xfe, 0xec, 0xd2, 0xff, 0x1f}, + error::end_of_stream); + check({0xed, 0xc0, 0x01, 0x01, 0x00, 0x00, 0x00, 0x40, + 0x20, 0xff, 0x57, 0x1b, 0x42, 0x2c, 0x4f}, + error::end_of_stream); + // check({0xed, 0xc0, 0x81, 0x00, 0x00, 0x00, 0x00, 0x80, + // 0xa0, 0xfd, 0xa9, 0x17, 0xa9, 0x00, 0x00, 0x00, + // 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + // 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + // 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + // 0x00, 0x00, 0x00, 0x00, 0x00, 0x06}, + // error::end_of_stream); // FIXME: zlib expects an error here } void testInvalidSettings()