aboutsummaryrefslogtreecommitdiff
path: root/tests/files
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2021-01-24 22:32:41 +0200
committerLasse Collin <lasse.collin@tukaani.org>2022-07-12 18:44:13 +0300
commit9e2f9e2d0841dd0417125ca3c7a05418541fb230 (patch)
tree82dc58808abe648dd3768b6916c31d2b33190ccc /tests/files
parentTests: Add bad-1-lzma2-9.xz. (diff)
downloadxz-9e2f9e2d0841dd0417125ca3c7a05418541fb230.tar.xz
Tests: Add bad-1-lzma2-10.xz and also modify -9.xz.
Diffstat (limited to 'tests/files')
-rw-r--r--tests/files/README11
-rw-r--r--tests/files/bad-1-lzma2-10.xzbin0 -> 60 bytes
-rw-r--r--tests/files/bad-1-lzma2-9.xzbin72 -> 72 bytes
3 files changed, 9 insertions, 2 deletions
diff --git a/tests/files/README b/tests/files/README
index 18c4d583..1e14378a 100644
--- a/tests/files/README
+++ b/tests/files/README
@@ -246,6 +246,13 @@
properties in the third LZMA2 chunk.
bad-1-lzma2-9.xz has LZMA2 stream that is truncated at the end of
- a LZMA2 chunk and has no end marker. The uncompressed size of the
- partial LZMA2 stream exceeds the value stored in the Block Header.
+ a LZMA2 chunk (no end marker). The uncompressed size of the partial
+ LZMA2 stream exceeds the value stored in the Block Header.
+
+ bad-1-lzma2-10.xz has LZMA2 stream that, from point of view of a
+ LZMA2 decoder, extends past the end of Block (and even the end of
+ the file). Uncompressed Size in Block Header is bigger than the
+ invalid LZMA2 stream may produce (even if a decoder reads until
+ the end of the file). The Check type is None to nullify certain
+ simple size-based sanity checks in a Block decoder.
diff --git a/tests/files/bad-1-lzma2-10.xz b/tests/files/bad-1-lzma2-10.xz
new file mode 100644
index 00000000..246515ea
--- /dev/null
+++ b/tests/files/bad-1-lzma2-10.xz
Binary files differ
diff --git a/tests/files/bad-1-lzma2-9.xz b/tests/files/bad-1-lzma2-9.xz
index cf191010..0553905a 100644
--- a/tests/files/bad-1-lzma2-9.xz
+++ b/tests/files/bad-1-lzma2-9.xz
Binary files differ