Added test files to test usage of flush marker in LZMA.
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 18 Jan 2008 18:13:00 +0000 (20:13 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 18 Jan 2008 18:13:00 +0000 (20:13 +0200)
tests/files/README
tests/files/bad-single-lzma-flush_beginning.lzma [new file with mode: 0644]
tests/files/bad-single-lzma-flush_twice.lzma [new file with mode: 0644]
tests/files/good-single-lzma-flush_1.lzma [new file with mode: 0644]
tests/files/good-single-lzma-flush_2.lzma [new file with mode: 0644]

index e8f4160..4274262 100644 (file)
     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
 
     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 (file)
index 0000000..1952c04
Binary files /dev/null and b/tests/files/bad-single-lzma-flush_beginning.lzma differ
diff --git a/tests/files/bad-single-lzma-flush_twice.lzma b/tests/files/bad-single-lzma-flush_twice.lzma
new file mode 100644 (file)
index 0000000..d71dac0
Binary files /dev/null and b/tests/files/bad-single-lzma-flush_twice.lzma differ
diff --git a/tests/files/good-single-lzma-flush_1.lzma b/tests/files/good-single-lzma-flush_1.lzma
new file mode 100644 (file)
index 0000000..7de086f
Binary files /dev/null and b/tests/files/good-single-lzma-flush_1.lzma differ
diff --git a/tests/files/good-single-lzma-flush_2.lzma b/tests/files/good-single-lzma-flush_2.lzma
new file mode 100644 (file)
index 0000000..c444a21
Binary files /dev/null and b/tests/files/good-single-lzma-flush_2.lzma differ