From 83f8a05f87cc5ee94aca47d250980bde22bb7bf1 Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Wed, 8 Feb 2023 11:42:46 -0800 Subject: [PATCH] Fix empty-block.zst golden decompression file This frame is invalid because the `Window_Size = 0`, and the `Block_Maximum_Size = min(128 KB, Window_Size) = 0`. But the empty compressed block has a `Block_Content` size of 2, which is invalid. The fix is to switch to using a `Window_Descriptor` instead of the `Single_Segment_Flag`. This sets the `Window_Size = 1024`. Hexdump before this PR: `28b5 2ffd 2000 1500 0000 00` Hexdump after this PR: `28b5 2ffd 0000 1500 0000 00` For issue #3482. --- tests/golden-decompression/empty-block.zst | Bin 11 -> 11 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/tests/golden-decompression/empty-block.zst b/tests/golden-decompression/empty-block.zst index 2a3782aff0d1a6bab62dcdc1af29b448322a84bd..fbfb893e11eb677f1e6444ead8a5829a3a23e53e 100644 GIT binary patch literal 11 QcmdPcs{faPL6iXq020jt9{>OV literal 11 QcmdPcs{dDkL6iXq028eOKL7v#