diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2008-01-08 13:35:36 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2008-01-08 13:35:36 +0200 |
commit | 9080267603b1006c4867c823307dca9df8be0d20 (patch) | |
tree | d93e4ddb1a15e271b03c268dbeb37a0cc4f8145d /tests/files | |
parent | Avoid using ! in test_files.sh, because that doesn't work (diff) | |
download | xz-9080267603b1006c4867c823307dca9df8be0d20.tar.xz |
Added a few test files.
Diffstat (limited to 'tests/files')
-rw-r--r-- | tests/files/README | 21 | ||||
-rw-r--r-- | tests/files/bad-cat-single-none-pad_garbage_1.lzma | bin | 0 -> 65 bytes | |||
-rw-r--r-- | tests/files/bad-cat-single-none-pad_garbage_2.lzma | bin | 0 -> 65 bytes | |||
-rw-r--r-- | tests/files/bad-cat-single-none-pad_garbage_3.lzma | bin | 0 -> 65 bytes | |||
-rw-r--r-- | tests/files/bad-single-data_after_eopm_1.lzma (renamed from tests/files/bad-single-data_after_eopm.lzma) | bin | 55 -> 55 bytes | |||
-rw-r--r-- | tests/files/bad-single-none-truncated.lzma | bin | 0 -> 29 bytes |
6 files changed, 18 insertions, 3 deletions
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 Binary files differnew file mode 100644 index 00000000..447f1998 --- /dev/null +++ b/tests/files/bad-cat-single-none-pad_garbage_1.lzma diff --git a/tests/files/bad-cat-single-none-pad_garbage_2.lzma b/tests/files/bad-cat-single-none-pad_garbage_2.lzma Binary files differnew file mode 100644 index 00000000..26595aae --- /dev/null +++ b/tests/files/bad-cat-single-none-pad_garbage_2.lzma diff --git a/tests/files/bad-cat-single-none-pad_garbage_3.lzma b/tests/files/bad-cat-single-none-pad_garbage_3.lzma Binary files differnew file mode 100644 index 00000000..73c87449 --- /dev/null +++ b/tests/files/bad-cat-single-none-pad_garbage_3.lzma diff --git a/tests/files/bad-single-data_after_eopm.lzma b/tests/files/bad-single-data_after_eopm_1.lzma Binary files differindex 3c1e90f2..3c1e90f2 100644 --- a/tests/files/bad-single-data_after_eopm.lzma +++ b/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 Binary files differnew file mode 100644 index 00000000..cc7aa56b --- /dev/null +++ b/tests/files/bad-single-none-truncated.lzma |