Added bunch of test files containing Multi-Block Streams.
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 23 Jan 2008 22:46:05 +0000 (00:46 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 23 Jan 2008 22:46:05 +0000 (00:46 +0200)
19 files changed:
tests/files/README
tests/files/bad-multi-none-1.lzma [new file with mode: 0644]
tests/files/bad-multi-none-2.lzma [new file with mode: 0644]
tests/files/bad-multi-none-3.lzma [new file with mode: 0644]
tests/files/bad-multi-none-extra_1.lzma [new file with mode: 0644]
tests/files/bad-multi-none-extra_2.lzma [new file with mode: 0644]
tests/files/bad-multi-none-extra_3.lzma [new file with mode: 0644]
tests/files/bad-multi-none-header_1.lzma [new file with mode: 0644]
tests/files/bad-multi-none-index_1.lzma [new file with mode: 0644]
tests/files/bad-multi-none-index_2.lzma [new file with mode: 0644]
tests/files/bad-multi-none-index_3.lzma [new file with mode: 0644]
tests/files/bad-multi-none-index_4.lzma [new file with mode: 0644]
tests/files/good-multi-none-1.lzma [new file with mode: 0644]
tests/files/good-multi-none-2.lzma [new file with mode: 0644]
tests/files/good-multi-none-extra_1.lzma [new file with mode: 0644]
tests/files/good-multi-none-extra_2.lzma [new file with mode: 0644]
tests/files/good-multi-none-extra_3.lzma [new file with mode: 0644]
tests/files/good-multi-none-header_1.lzma [new file with mode: 0644]
tests/files/good-multi-none-header_2.lzma [new file with mode: 0644]

index 1f47c3c..4cabf87 100644 (file)
     good-single-lzma-flush_2.lzma has a flush marker in the middle of
     the file and just before EOPM.
 
+    good-multi-none-1.lzma is a basic Multi-Block Stream with two Data
+    Blocks and Footer Metadata Block.
+
+    good-multi-none-2.lzma is good-multi-none-1.lzma with Total Size and
+    Uncompressed Size added to the Footer Metadata Block.
+
+    good-multi-none-extra_1.lzma has the `Extra is present' flag set but
+    no actual Extra Records.
+
+    good-multi-none-extra_2.lzma has two non-empty Extra Records.
+
+    good-multi-none-extra_3.lzma has an Extra Record that has empty Data.
+
+    good-multi-none-header_1.lzma has very minimal Header Metadata Block
+    with only the Metadata Flags field.
+
+    good-multi-none-header_2.lzma has all information in both Header and
+    Footer Metadata Blocks. The Size of Header Metadata Block has wrong
+    value in Header Metadata Block, but this value must be ignored by
+    the decoder in case of Header Metadata Block.
+
 
 2.2. Bad Files
 
     bad-single-lzma-flush_twice.lzma has two flush markers with no data
     between them.
 
+    bad-multi-none-1.lzma has data after the last field in the Metadata
+    Block and the `Extra is present' flag is not set.
+
+    bad-multi-none-2.lzma has wrong Total Size in Footer Metadata Block.
+
+    bad-multi-none-3.lzma has wrong Uncompressed Size in Footer Metadata
+    Block.
+
+    bad-multi-none-index_1.lzma has wrong value in the Number of Data
+    Blocks field.
+
+    bad-multi-none-index_2.lzma has too short Metadata to contain all
+    the Index Records.
+
+    bad-multi-none-index_3.lzma has wrong value in Total Size field in
+    the Index.
+
+    bad-multi-none-index_4.lzma has wrong value in Uncompressed Size field
+    in the Index.
+
+    bad-multi-none-extra_1.lzma has incomplete Extra Record at the end of
+    the Metadata Block.
+
+    bad-multi-none-extra_2.lzma has incomplete variable-length integer as
+    Extra Record ID.
+
+    bad-multi-none-extra_3.lzma has incomplete Extra Record at the end of
+    the Metadata Block.
+
+    bad-multi-none-header_1.lzma has empty Header Metadata Block (even
+    the Metadata Flags field is not present).
+
 
 2.3. Malicious Files
 
diff --git a/tests/files/bad-multi-none-1.lzma b/tests/files/bad-multi-none-1.lzma
new file mode 100644 (file)
index 0000000..208e510
Binary files /dev/null and b/tests/files/bad-multi-none-1.lzma differ
diff --git a/tests/files/bad-multi-none-2.lzma b/tests/files/bad-multi-none-2.lzma
new file mode 100644 (file)
index 0000000..f338e5b
Binary files /dev/null and b/tests/files/bad-multi-none-2.lzma differ
diff --git a/tests/files/bad-multi-none-3.lzma b/tests/files/bad-multi-none-3.lzma
new file mode 100644 (file)
index 0000000..936ae69
Binary files /dev/null and b/tests/files/bad-multi-none-3.lzma differ
diff --git a/tests/files/bad-multi-none-extra_1.lzma b/tests/files/bad-multi-none-extra_1.lzma
new file mode 100644 (file)
index 0000000..ac408dc
Binary files /dev/null and b/tests/files/bad-multi-none-extra_1.lzma differ
diff --git a/tests/files/bad-multi-none-extra_2.lzma b/tests/files/bad-multi-none-extra_2.lzma
new file mode 100644 (file)
index 0000000..9cb47e1
Binary files /dev/null and b/tests/files/bad-multi-none-extra_2.lzma differ
diff --git a/tests/files/bad-multi-none-extra_3.lzma b/tests/files/bad-multi-none-extra_3.lzma
new file mode 100644 (file)
index 0000000..9c83715
Binary files /dev/null and b/tests/files/bad-multi-none-extra_3.lzma differ
diff --git a/tests/files/bad-multi-none-header_1.lzma b/tests/files/bad-multi-none-header_1.lzma
new file mode 100644 (file)
index 0000000..fbad401
Binary files /dev/null and b/tests/files/bad-multi-none-header_1.lzma differ
diff --git a/tests/files/bad-multi-none-index_1.lzma b/tests/files/bad-multi-none-index_1.lzma
new file mode 100644 (file)
index 0000000..b1bd0ce
Binary files /dev/null and b/tests/files/bad-multi-none-index_1.lzma differ
diff --git a/tests/files/bad-multi-none-index_2.lzma b/tests/files/bad-multi-none-index_2.lzma
new file mode 100644 (file)
index 0000000..59d92c6
Binary files /dev/null and b/tests/files/bad-multi-none-index_2.lzma differ
diff --git a/tests/files/bad-multi-none-index_3.lzma b/tests/files/bad-multi-none-index_3.lzma
new file mode 100644 (file)
index 0000000..5b94972
Binary files /dev/null and b/tests/files/bad-multi-none-index_3.lzma differ
diff --git a/tests/files/bad-multi-none-index_4.lzma b/tests/files/bad-multi-none-index_4.lzma
new file mode 100644 (file)
index 0000000..880878a
Binary files /dev/null and b/tests/files/bad-multi-none-index_4.lzma differ
diff --git a/tests/files/good-multi-none-1.lzma b/tests/files/good-multi-none-1.lzma
new file mode 100644 (file)
index 0000000..53c6afa
Binary files /dev/null and b/tests/files/good-multi-none-1.lzma differ
diff --git a/tests/files/good-multi-none-2.lzma b/tests/files/good-multi-none-2.lzma
new file mode 100644 (file)
index 0000000..bef0681
Binary files /dev/null and b/tests/files/good-multi-none-2.lzma differ
diff --git a/tests/files/good-multi-none-extra_1.lzma b/tests/files/good-multi-none-extra_1.lzma
new file mode 100644 (file)
index 0000000..ead3885
Binary files /dev/null and b/tests/files/good-multi-none-extra_1.lzma differ
diff --git a/tests/files/good-multi-none-extra_2.lzma b/tests/files/good-multi-none-extra_2.lzma
new file mode 100644 (file)
index 0000000..3dc8e51
Binary files /dev/null and b/tests/files/good-multi-none-extra_2.lzma differ
diff --git a/tests/files/good-multi-none-extra_3.lzma b/tests/files/good-multi-none-extra_3.lzma
new file mode 100644 (file)
index 0000000..6e35306
Binary files /dev/null and b/tests/files/good-multi-none-extra_3.lzma differ
diff --git a/tests/files/good-multi-none-header_1.lzma b/tests/files/good-multi-none-header_1.lzma
new file mode 100644 (file)
index 0000000..169b5c9
Binary files /dev/null and b/tests/files/good-multi-none-header_1.lzma differ
diff --git a/tests/files/good-multi-none-header_2.lzma b/tests/files/good-multi-none-header_2.lzma
new file mode 100644 (file)
index 0000000..9bec4ff
Binary files /dev/null and b/tests/files/good-multi-none-header_2.lzma differ