[6.0] dc4ca03c0 Fix a bug in our vgz-extension which is only triggered by vtest and only after 7565cdba7d10
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Tue Oct 17 21:28:11 UTC 2023
commit dc4ca03c0cf10fa2c19a4ccd612359a784a06357
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri May 12 21:59:06 2023 +0000
Fix a bug in our vgz-extension which is only triggered by vtest and only after 7565cdba7d10
diff --git a/lib/libvgz/deflate.c b/lib/libvgz/deflate.c
index 69222e189..fb0a53684 100644
--- a/lib/libvgz/deflate.c
+++ b/lib/libvgz/deflate.c
@@ -1805,6 +1805,9 @@ local block_state deflate_stored(s, flush)
s->strm->total_out += len;
}
} while (last == 0);
+ if (last)
+ s->strm->stop_bit =
+ (s->strm->total_out + s->pending) * 8 + s->bi_valid;
/* Update the sliding window with the last s->w_size bytes of the copied
* data, or append all of the copied data to the existing window if less
More information about the varnish-commit
mailing list