From: Mika Lindqvist Date: Tue, 25 Apr 2023 23:18:24 +0000 (+0300) Subject: Fix use after free in test_deflate_bound. X-Git-Tag: 2.1.0-beta1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b4377a3623e9fbe08a24fe20233dc3cdefba9ea;p=thirdparty%2Fzlib-ng.git Fix use after free in test_deflate_bound. --- diff --git a/test/test_deflate_bound.cc b/test/test_deflate_bound.cc index 33bc452eb..c86d4e00b 100644 --- a/test/test_deflate_bound.cc +++ b/test/test_deflate_bound.cc @@ -81,6 +81,7 @@ public: "length: " << i; free(out_buf); + out_buf = NULL; } err = PREFIX(deflateEnd)(&c_stream);