]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Tests: Add bad-1-check-crc32-2.xz.
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 24 Jan 2021 15:02:00 +0000 (17:02 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 24 Jan 2021 15:04:51 +0000 (17:04 +0200)
tests/files/README
tests/files/bad-1-check-crc32-2.xz [new file with mode: 0644]

index 53950edb49186d0a15e6ce437ff50954f76fa973..1ee81bdaf057513ccaf3554cc2987614857f1868 100644 (file)
 
     bad-1-check-crc32.xz has wrong Check (CRC32).
 
+    bad-1-check-crc32-2.xz has Compressed Size and Uncompressed Size in
+    Block Header but wrong Check (CRC32) in the actual data. This file
+    differs by one byte from good-1-block_header-1.xz: the last byte of
+    the Check field is wrong. This file is useful for testing error
+    detection in the threaded decoder when a worker thread is configured
+    to pass input one byte at a time to the Block decoder.
+
     bad-1-check-crc64.xz has wrong Check (CRC64).
 
     bad-1-check-sha256.xz has wrong Check (SHA-256).
diff --git a/tests/files/bad-1-check-crc32-2.xz b/tests/files/bad-1-check-crc32-2.xz
new file mode 100644 (file)
index 0000000..95731ae
Binary files /dev/null and b/tests/files/bad-1-check-crc32-2.xz differ