From 0ae3208db94585eb8294b97ded387de0a3a07646 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Fri, 18 Jan 2008 20:13:00 +0200 Subject: [PATCH] Added test files to test usage of flush marker in LZMA. --- tests/files/README | 12 ++++++++++++ tests/files/bad-single-lzma-flush_beginning.lzma | Bin 0 -> 53 bytes tests/files/bad-single-lzma-flush_twice.lzma | Bin 0 -> 63 bytes tests/files/good-single-lzma-flush_1.lzma | Bin 0 -> 48 bytes tests/files/good-single-lzma-flush_2.lzma | Bin 0 -> 63 bytes 5 files changed, 12 insertions(+) create mode 100644 tests/files/bad-single-lzma-flush_beginning.lzma create mode 100644 tests/files/bad-single-lzma-flush_twice.lzma create mode 100644 tests/files/good-single-lzma-flush_1.lzma create mode 100644 tests/files/good-single-lzma-flush_2.lzma diff --git a/tests/files/README b/tests/files/README index e8f4160..4274262 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 new file mode 100644 index 0000000000000000000000000000000000000000..1952c04325a31843e9da3f7bb471d5d96a79ff06 GIT binary patch literal 53 zcmezG6Xom3z|i}i=@KV{L##YQ`~Tnn{~urg0u@Qm8LNBVC>&tj-8I`I>hAx4E6oyk I)EFY807)zsE&u=k literal 0 HcmV?d00001 diff --git a/tests/files/bad-single-lzma-flush_twice.lzma b/tests/files/bad-single-lzma-flush_twice.lzma new file mode 100644 index 0000000000000000000000000000000000000000..d71dac0073b0035183bdb97b64a2be29c7fbba5c GIT binary patch literal 63 zcmV-F0KotMOj=Dr0052e0@4WpKwTdIBpFGVZv_=6Ck=LZW|d3p|Ngxo004-_3;+L} Vg@eEVgnfK=|D?oo`V24tSz6|X8MXib literal 0 HcmV?d00001 diff --git a/tests/files/good-single-lzma-flush_1.lzma b/tests/files/good-single-lzma-flush_1.lzma new file mode 100644 index 0000000000000000000000000000000000000000..7de086faa4d7cee5635e4f7c7371c3e5a2b7a43e GIT binary patch literal 48 zcmezG6Xom3z|i}i>5?J?k3+0HgNmf*jC@w7b^rhWf55@Oz@Q^LKW(j-K5t8dB12>p E0F$;5EdT%j literal 0 HcmV?d00001 diff --git a/tests/files/good-single-lzma-flush_2.lzma b/tests/files/good-single-lzma-flush_2.lzma new file mode 100644 index 0000000000000000000000000000000000000000..c444a2179a3a40e1121758bb74e088ea8f297926 GIT binary patch literal 63 zcmV-F0KotMOj=Dr0052e0@4WpKwTdIBpFGVZv{fG|NsBs2mk;8EFGU_tx7bLuRs6% Vt6@L@gkRVn|EC_oVGJ+;Sz7h17@z