Skip to content

Commit

Permalink
Fix empty-block.zst golden decompression file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
terrelln committed Feb 8, 2023
1 parent 488f7c0 commit 83f8a05
Showing 1 changed file with 0 additions and 0 deletions.
Binary file modified tests/golden-decompression/empty-block.zst
Binary file not shown.

0 comments on commit 83f8a05

Please sign in to comment.