]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Tests: Add bad-1-lzma2-10.xz and also modify -9.xz.
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 24 Jan 2021 20:32:41 +0000 (22:32 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 24 Jan 2021 20:32:41 +0000 (22:32 +0200)
tests/files/README
tests/files/bad-1-lzma2-10.xz [new file with mode: 0644]
tests/files/bad-1-lzma2-9.xz

index 18c4d5831e1a8d2908e49c2e01ce261df2e4ef31..1e14378af7c80144e888a4397fb761e82e8d9866 100644 (file)
     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 (file)
index 0000000..246515e
Binary files /dev/null and b/tests/files/bad-1-lzma2-10.xz differ
index cf191010b432f4d88d125c9d6cf191e38d3a91c9..0553905a0b5589bab4b5eb89455372dcb3dd7fef 100644 (file)
Binary files a/tests/files/bad-1-lzma2-9.xz and b/tests/files/bad-1-lzma2-9.xz differ