From eb5f7a7fa278ab76c3390555f36162c638f63b53 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sat, 9 Mar 2024 00:33:44 -0800 Subject: [PATCH] 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. --- doc/decompressor_permissive.md | 4 +--- tests/golden-decompression-errors/off0.bin.zst | Bin 0 -> 17 bytes 2 files changed, 1 insertion(+), 3 deletions(-) create mode 100644 tests/golden-decompression-errors/off0.bin.zst 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 0000000000000000000000000000000000000000..13493fb336c6e3e339c1c224a1a2ada1a8b57a0b GIT binary patch literal 17 Yc-qt0s{faP!Igo5gMo=b-