From: Vladislav Shchapov Date: Fri, 17 May 2024 17:37:29 +0000 (+0500) Subject: Use actual compressed length X-Git-Tag: 2.2.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a99dd0d71214871ef347dc2ac66c569788627f9;p=thirdparty%2Fzlib-ng.git Use actual compressed length Signed-off-by: Vladislav Shchapov --- diff --git a/test/test_dict.cc b/test/test_dict.cc index af9662e3..8a882d57 100644 --- a/test/test_dict.cc +++ b/test/test_dict.cc @@ -53,6 +53,8 @@ TEST(dictionary, basic) { err = PREFIX(deflateEnd)(&c_stream); EXPECT_EQ(err, Z_OK); + compr_len = (z_size_t)c_stream.total_out; + strcpy((char*)uncompr, "garbage garbage garbage"); d_stream.next_in = compr;