aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-09-30 13:56:57 +0300
committerLasse Collin <lasse.collin@tukaani.org>2008-09-30 13:56:57 +0300
commit3bdbc12c054d1961133ee19802af7dd3c3494543 (patch)
tree9f9c2cdac76d6bc111392160f1eaf284e8f6fa47 /tests
parentFixed uninitialized variable in Stream decoder. (diff)
downloadxz-3bdbc12c054d1961133ee19802af7dd3c3494543.tar.xz
Added one more test file.
Diffstat (limited to 'tests')
-rw-r--r--tests/files/README15
-rw-r--r--tests/files/bad-0cat-header_magic.lzmabin0 -> 64 bytes
2 files changed, 11 insertions, 4 deletions
diff --git a/tests/files/README b/tests/files/README
index 4f963627..3599011e 100644
--- a/tests/files/README
+++ b/tests/files/README
@@ -123,14 +123,21 @@
bad-0cat-alone.lzma is good-0-empty.lzma concatenated with an empty
LZMA_Alone file.
- bad-0-empty-truncated.lzma is good-0-empty.lzma without the last byte
- of the file.
+ bad-0cat-header_magic.lzma is good-0cat-empty.lzma but with one byte
+ wrong in the Header Magic Bytes field of the second Stream. liblzma
+ gives LZMA_DATA_ERROR for this. (LZMA_FORMAT_ERROR is used only if
+ the first Stream of a file has invalid Header Magic Bytes.)
bad-0-header_magic.lzma is good-0-empty.lzma but with one byte wrong
- in the Header Magic Bytes field.
+ in the Header Magic Bytes field. liblzma gives LZMA_FORMAT_ERROR for
+ this.
bad-0-footer_magic.lzma is good-0-empty.lzma but with one byte wrong
- in the Footer Magic Bytes field.
+ in the Footer Magic Bytes field. liblzma gives LZMA_DATA_ERROR for
+ this.
+
+ bad-0-empty-truncated.lzma is good-0-empty.lzma without the last byte
+ of the file.
bad-0-nonempty_index.lzma has no Blocks but Index claims that there is
one Block.
diff --git a/tests/files/bad-0cat-header_magic.lzma b/tests/files/bad-0cat-header_magic.lzma
new file mode 100644
index 00000000..426bf2d4
--- /dev/null
+++ b/tests/files/bad-0cat-header_magic.lzma
Binary files differ