diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2008-01-18 20:13:00 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2008-01-18 20:13:00 +0200 |
commit | 0ae3208db94585eb8294b97ded387de0a3a07646 (patch) | |
tree | 4c5ed6d08186edffa101719fe8321aa3faacd017 /tests | |
parent | Fix LZMA_SYNC_FLUSH handling in LZ and LZMA encoders. (diff) | |
download | xz-0ae3208db94585eb8294b97ded387de0a3a07646.tar.xz |
Added test files to test usage of flush marker in LZMA.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/files/README | 12 | ||||
-rw-r--r-- | tests/files/bad-single-lzma-flush_beginning.lzma | bin | 0 -> 53 bytes | |||
-rw-r--r-- | tests/files/bad-single-lzma-flush_twice.lzma | bin | 0 -> 63 bytes | |||
-rw-r--r-- | tests/files/good-single-lzma-flush_1.lzma | bin | 0 -> 48 bytes | |||
-rw-r--r-- | tests/files/good-single-lzma-flush_2.lzma | bin | 0 -> 63 bytes |
5 files changed, 12 insertions, 0 deletions
diff --git a/tests/files/README b/tests/files/README index e8f4160e..42742629 100644 --- a/tests/files/README +++ b/tests/files/README @@ -70,6 +70,12 @@ good-single-delta-lzma.tiff.lzma is an image file that compresses better with Delta+LZMA than with plain LZMA. + good-single-lzma-flush_1.lzma has a flush marker in the middle of + the file, and no EOPM. + + good-single-lzma-flush_2.lzma has a flush marker in the middle of + the file and just before EOPM. + 2.2. Bad Files @@ -115,6 +121,12 @@ but it seemed to be a bad idea since it would increase worst-case CPU usage. + bad-single-lzma-flush_beginning.lzma has flush marker in the beginning + of the LZMA data. + + bad-single-lzma-flush_twice.lzma has two flush markers with no data + between them. + 2.3. Malicious Files diff --git a/tests/files/bad-single-lzma-flush_beginning.lzma b/tests/files/bad-single-lzma-flush_beginning.lzma Binary files differnew file mode 100644 index 00000000..1952c043 --- /dev/null +++ b/tests/files/bad-single-lzma-flush_beginning.lzma diff --git a/tests/files/bad-single-lzma-flush_twice.lzma b/tests/files/bad-single-lzma-flush_twice.lzma Binary files differnew file mode 100644 index 00000000..d71dac00 --- /dev/null +++ b/tests/files/bad-single-lzma-flush_twice.lzma diff --git a/tests/files/good-single-lzma-flush_1.lzma b/tests/files/good-single-lzma-flush_1.lzma Binary files differnew file mode 100644 index 00000000..7de086fa --- /dev/null +++ b/tests/files/good-single-lzma-flush_1.lzma diff --git a/tests/files/good-single-lzma-flush_2.lzma b/tests/files/good-single-lzma-flush_2.lzma Binary files differnew file mode 100644 index 00000000..c444a217 --- /dev/null +++ b/tests/files/good-single-lzma-flush_2.lzma |