aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2021-01-24 17:02:00 +0200
committerLasse Collin <lasse.collin@tukaani.org>2022-07-12 18:43:50 +0300
commit1da2269b2e9b952d165ad7bec823de9dfe9a9e9e (patch)
treeb50295637f8993432a6ac9e0198365a0e2a498b0
parentScripts: Add zstd support to xzdiff. (diff)
downloadxz-1da2269b2e9b952d165ad7bec823de9dfe9a9e9e.tar.xz
Tests: Add bad-1-check-crc32-2.xz.
Diffstat (limited to '')
-rw-r--r--tests/files/README7
-rw-r--r--tests/files/bad-1-check-crc32-2.xzbin0 -> 72 bytes
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/files/README b/tests/files/README
index 53950edb..1ee81bda 100644
--- a/tests/files/README
+++ b/tests/files/README
@@ -209,6 +209,13 @@
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
index 00000000..95731ae3
--- /dev/null
+++ b/tests/files/bad-1-check-crc32-2.xz
Binary files differ