From: Lasse Collin Date: Sun, 24 Jan 2021 15:02:00 +0000 (+0200) Subject: Tests: Add bad-1-check-crc32-2.xz. X-Git-Tag: v5.3.2alpha~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdd30032f8531ac89519b48c21d810ecf06825f6;p=thirdparty%2Fxz.git Tests: Add bad-1-check-crc32-2.xz. --- 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 Binary files /dev/null and b/tests/files/bad-1-check-crc32-2.xz differ