From 1da2269b2e9b952d165ad7bec823de9dfe9a9e9e Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 24 Jan 2021 17:02:00 +0200 Subject: [PATCH] Tests: Add bad-1-check-crc32-2.xz. --- tests/files/README | 7 +++++++ tests/files/bad-1-check-crc32-2.xz | Bin 0 -> 72 bytes 2 files changed, 7 insertions(+) create mode 100644 tests/files/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 0000000000000000000000000000000000000000..95731ae3a0e0e303d9ba82ff7d6bf868120b9095 GIT binary patch literal 72 zcmexsUKJ6=z`&TPbkB_WfFQ3TBL@Qr)Zepw&B(yxk(!f}&lR3ul#`;!1rm2&yy!mz VqbhHq{OqX52m61D&U literal 0 HcmV?d00001