]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fix use after free in test_deflate_bound.
authorMika Lindqvist <postmaster@raasu.org>
Tue, 25 Apr 2023 23:18:24 +0000 (02:18 +0300)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Thu, 27 Apr 2023 22:28:06 +0000 (00:28 +0200)
test/test_deflate_bound.cc

index 33bc452ebdc873d6d64a0b16d4762044bb752518..c86d4e00b00c5ba6126ec41f937c8c327ba99a4f 100644 (file)
@@ -81,6 +81,7 @@ public:
                     "length: " << i;
 
                 free(out_buf);
+                out_buf = NULL;
             }
 
             err = PREFIX(deflateEnd)(&c_stream);