]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
produced golden sample for the offset==0 decoder test 3937/head
authorYann Collet <cyan@fb.com>
Sat, 9 Mar 2024 08:33:44 +0000 (00:33 -0800)
committerYann Collet <cyan@fb.com>
Sat, 9 Mar 2024 08:33:44 +0000 (00:33 -0800)
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
tests/golden-decompression-errors/off0.bin.zst [new file with mode: 0644]

index 29846c31a1b30d1ac6d740234444bda89675947a..bd77165f0e3e780e36d4b655ca2780db8ded2d24 100644 (file)
@@ -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 (file)
index 0000000..13493fb
Binary files /dev/null and b/tests/golden-decompression-errors/off0.bin.zst differ