From 9080267603b1006c4867c823307dca9df8be0d20 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 8 Jan 2008 13:35:36 +0200 Subject: Added a few test files. --- tests/files/README | 21 ++++++++++++++++++--- tests/files/bad-cat-single-none-pad_garbage_1.lzma | Bin 0 -> 65 bytes tests/files/bad-cat-single-none-pad_garbage_2.lzma | Bin 0 -> 65 bytes tests/files/bad-cat-single-none-pad_garbage_3.lzma | Bin 0 -> 65 bytes tests/files/bad-single-data_after_eopm.lzma | Bin 55 -> 0 bytes tests/files/bad-single-data_after_eopm_1.lzma | Bin 0 -> 55 bytes tests/files/bad-single-none-truncated.lzma | Bin 0 -> 29 bytes 7 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 tests/files/bad-cat-single-none-pad_garbage_1.lzma create mode 100644 tests/files/bad-cat-single-none-pad_garbage_2.lzma create mode 100644 tests/files/bad-cat-single-none-pad_garbage_3.lzma delete mode 100644 tests/files/bad-single-data_after_eopm.lzma create mode 100644 tests/files/bad-single-data_after_eopm_1.lzma create mode 100644 tests/files/bad-single-none-truncated.lzma (limited to 'tests') diff --git a/tests/files/README b/tests/files/README index f2b274c2..542a7b27 100644 --- a/tests/files/README +++ b/tests/files/README @@ -59,12 +59,27 @@ 2.2. Bad Files - bad-single-data_after_eopm.lzma has LZMA+Subblock, where the Subblock + bad-single-none-truncated.lzma is good-single-none.lzma without the + last byte of the file. + + bad-cat-single-none-pad_garbage_1.lzma is good-cat-single-none-pad.lzma + with 0xFE appended to the end of the file. 0xFE doesn't begin .lzma + or LZMA_Alone format file. + + bad-cat-single-none-pad_garbage_2.lzma is good-cat-single-none-pad.lzma + with 0xFF appended to the end of the file. 0xFF begins .lzma format + file, thus the decoder has to detect that the file is incomplete. + + bad-cat-single-none-pad_garbage_3.lzma is good-cat-single-none-pad.lzma + with 0x5D appended to the end of the file. 0x5D is the most common + first byte of LZMA_Alone format file. + + bad-single-data_after_eopm_1.lzma has LZMA+Subblock, where the Subblock filter gives one byte of data to LZMA after LZMA has detected EOPM. bad-single-data_after_eopm_2.lzma is like - bad-single-data_after_eopm.lzma but Subblock gives 256 MiB of data to - LZMA after LZMA has detected EOPM. + bad-single-data_after_eopm_1.lzma but Subblock gives 256 MiB of data + to LZMA after LZMA has detected EOPM. bad-single-subblock_subblock.lzma has Subblock+Subblock, where the Subblock decoder is given End of Input in the middle of a Subblock. diff --git a/tests/files/bad-cat-single-none-pad_garbage_1.lzma b/tests/files/bad-cat-single-none-pad_garbage_1.lzma new file mode 100644 index 00000000..447f1998 Binary files /dev/null and b/tests/files/bad-cat-single-none-pad_garbage_1.lzma differ diff --git a/tests/files/bad-cat-single-none-pad_garbage_2.lzma b/tests/files/bad-cat-single-none-pad_garbage_2.lzma new file mode 100644 index 00000000..26595aae Binary files /dev/null and b/tests/files/bad-cat-single-none-pad_garbage_2.lzma differ diff --git a/tests/files/bad-cat-single-none-pad_garbage_3.lzma b/tests/files/bad-cat-single-none-pad_garbage_3.lzma new file mode 100644 index 00000000..73c87449 Binary files /dev/null and b/tests/files/bad-cat-single-none-pad_garbage_3.lzma differ diff --git a/tests/files/bad-single-data_after_eopm.lzma b/tests/files/bad-single-data_after_eopm.lzma deleted file mode 100644 index 3c1e90f2..00000000 Binary files a/tests/files/bad-single-data_after_eopm.lzma and /dev/null differ diff --git a/tests/files/bad-single-data_after_eopm_1.lzma b/tests/files/bad-single-data_after_eopm_1.lzma new file mode 100644 index 00000000..3c1e90f2 Binary files /dev/null and b/tests/files/bad-single-data_after_eopm_1.lzma differ diff --git a/tests/files/bad-single-none-truncated.lzma b/tests/files/bad-single-none-truncated.lzma new file mode 100644 index 00000000..cc7aa56b Binary files /dev/null and b/tests/files/bad-single-none-truncated.lzma differ -- cgit v1.2.3