From 1fd76d488179580d37f31ee11948f4932aed31fd Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Thu, 24 Jan 2008 14:49:34 +0200 Subject: Added more Multi-Block Stream test files. --- tests/files/README | 23 +++++++++++++++++++++++ tests/files/bad-multi-none-header_2.lzma | Bin 0 -> 61 bytes tests/files/bad-multi-none-header_3.lzma | Bin 0 -> 59 bytes tests/files/bad-multi-none-header_4.lzma | Bin 0 -> 59 bytes tests/files/bad-multi-none-header_5.lzma | Bin 0 -> 58 bytes tests/files/bad-multi-none-header_6.lzma | Bin 0 -> 59 bytes tests/files/good-multi-none-header_3.lzma | Bin 0 -> 59 bytes 7 files changed, 23 insertions(+) create mode 100644 tests/files/bad-multi-none-header_2.lzma create mode 100644 tests/files/bad-multi-none-header_3.lzma create mode 100644 tests/files/bad-multi-none-header_4.lzma create mode 100644 tests/files/bad-multi-none-header_5.lzma create mode 100644 tests/files/bad-multi-none-header_6.lzma create mode 100644 tests/files/good-multi-none-header_3.lzma (limited to 'tests') diff --git a/tests/files/README b/tests/files/README index 4cabf87..ebf8d86 100644 --- a/tests/files/README +++ b/tests/files/README @@ -97,6 +97,10 @@ value in Header Metadata Block, but this value must be ignored by the decoder in case of Header Metadata Block. + good-multi-none-header_3.lzma has Index only in the Header Metadata + Block. Footer Metadata Block contains only Size of Header Metadata + Block and Total Size. + 2.2. Bad Files @@ -185,6 +189,25 @@ bad-multi-none-header_1.lzma has empty Header Metadata Block (even the Metadata Flags field is not present). + bad-multi-none-header_2.lzma has Index in the Header Metadata Block, + which describes only one Data Block, while the Stream actually has + two Data Blocks. A decoder should give an error when it detects the + second Data Block. + + bad-multi-none-header_3.lzma contains too small Total Size in Header + Metadata Block. A decoder should abort decoding before the second + Data Block, preferably before the first Data Block has been finished. + + bad-multi-none-header_4.lzma is like bad-multi-none-header_3.lzma but + with too small Uncompressed Size. + + bad-multi-none-header_5.lzma has Index in the Header Metadata Block, + but the Total Size field is missing from the Footer Metadata Block. + + bad-multi-none-header_6.lzma has both Index and Total Size in Header + Metadata Block, but Total Size doesn't match the Index. A decoder + should abort before decoding any Data Blocks. + 2.3. Malicious Files diff --git a/tests/files/bad-multi-none-header_2.lzma b/tests/files/bad-multi-none-header_2.lzma new file mode 100644 index 0000000..e7e66a7 Binary files /dev/null and b/tests/files/bad-multi-none-header_2.lzma differ diff --git a/tests/files/bad-multi-none-header_3.lzma b/tests/files/bad-multi-none-header_3.lzma new file mode 100644 index 0000000..37648e3 Binary files /dev/null and b/tests/files/bad-multi-none-header_3.lzma differ diff --git a/tests/files/bad-multi-none-header_4.lzma b/tests/files/bad-multi-none-header_4.lzma new file mode 100644 index 0000000..33cf425 Binary files /dev/null and b/tests/files/bad-multi-none-header_4.lzma differ diff --git a/tests/files/bad-multi-none-header_5.lzma b/tests/files/bad-multi-none-header_5.lzma new file mode 100644 index 0000000..313661f Binary files /dev/null and b/tests/files/bad-multi-none-header_5.lzma differ diff --git a/tests/files/bad-multi-none-header_6.lzma b/tests/files/bad-multi-none-header_6.lzma new file mode 100644 index 0000000..4055256 Binary files /dev/null and b/tests/files/bad-multi-none-header_6.lzma differ diff --git a/tests/files/good-multi-none-header_3.lzma b/tests/files/good-multi-none-header_3.lzma new file mode 100644 index 0000000..45cceba Binary files /dev/null and b/tests/files/good-multi-none-header_3.lzma differ -- cgit v1.2.1