From: Yann Collet Date: Sat, 9 Mar 2024 08:33:44 +0000 (-0800) Subject: produced golden sample for the offset==0 decoder test X-Git-Tag: v1.5.6^2~41^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3937%2Fhead;p=thirdparty%2Fzstd.git produced golden sample for the offset==0 decoder test is correctly detected as corrupted by new version, and is accepted (changed into offset==1) by older version. updated documentation accordingly, with an hexadecimal representation. --- diff --git a/doc/decompressor_permissive.md b/doc/decompressor_permissive.md index 29846c31a..bd77165f0 100644 --- a/doc/decompressor_permissive.md +++ b/doc/decompressor_permissive.md @@ -25,7 +25,7 @@ Offset == 0 **Produced by the reference compressor**: No -**Example Frame**: `28b5 2ffd 2000 1500 0000 00` +**Example Frame**: `28b5 2ffd 0000 4500 0008 0002 002f 430b ae` If a sequence is decoded with `literals_length = 0` and `offset_value = 3` while `Repeated_Offset_1 = 1`, the computed offset will be `0`, which is @@ -49,8 +49,6 @@ Non-zeroes reserved bits **Produced by the reference compressor**: No -**Example Frame**: `28b5 2ffd 2000 1500 0000 00` - The Sequences section of each block has a header, and one of its elements is a byte, which describes the compression mode of each symbol. This byte contains 2 reserved bits which must be set to zero. diff --git a/tests/golden-decompression-errors/off0.bin.zst b/tests/golden-decompression-errors/off0.bin.zst new file mode 100644 index 000000000..13493fb33 Binary files /dev/null and b/tests/golden-decompression-errors/off0.bin.zst differ