From 9080267603b1006c4867c823307dca9df8be0d20 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 8 Jan 2008 13:35:36 +0200 Subject: [PATCH] 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 ...eopm.lzma => bad-single-data_after_eopm_1.lzma} | Bin tests/files/bad-single-none-truncated.lzma | Bin 0 -> 29 bytes 6 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 rename tests/files/{bad-single-data_after_eopm.lzma => bad-single-data_after_eopm_1.lzma} (100%) create mode 100644 tests/files/bad-single-none-truncated.lzma diff --git a/tests/files/README b/tests/files/README index f2b274c..542a7b2 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 0000000000000000000000000000000000000000..447f1998aa16f22d474ce67722aa198291203e5b GIT binary patch literal 65 rcmezG6Xom3z|i}i>5>8ik4I`wPQF5Teo;;e7e7N}6a&M50`mU=vDXwW literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..26595aae3a073937823a1903043bc9c43674d9ba GIT binary patch literal 65 qcmezG6Xom3z|i}i>5>8ik4I`wPQF5Teo;;e7e7N}6a&M5Lh=By*c2`R literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..73c8744992c90e5e9b64011d6425e286ecd6074e GIT binary patch literal 65 rcmezG6Xom3z|i}i>5>8ik4I`wPQF5Teo;;e7e7N}6a&M50`jo{u{INo literal 0 HcmV?d00001 diff --git a/tests/files/bad-single-data_after_eopm.lzma b/tests/files/bad-single-data_after_eopm_1.lzma similarity index 100% rename from tests/files/bad-single-data_after_eopm.lzma rename to tests/files/bad-single-data_after_eopm_1.lzma diff --git a/tests/files/bad-single-none-truncated.lzma b/tests/files/bad-single-none-truncated.lzma new file mode 100644 index 0000000000000000000000000000000000000000..cc7aa56b728ab47ab23ff812297c95c05b02fbb4 GIT binary patch literal 29 kcmezG6Xom3z|i}i>5>8ik4I`wPQF5Teo;;e7e7NJ0GN&mJ^%m! literal 0 HcmV?d00001 -- 2.7.4