Commit 490ca911 for xz
commit 490ca91153c24812bcef1f657220af1a4525eeb1
Author: Lasse Collin <lasse.collin@tukaani.org>
Date: Sat Aug 15 19:50:05 2026 +0300
Tests: Add test file bad-1-index-huge-uncomp.xz
diff --git a/tests/files/README b/tests/files/README
index b89c494c..79763c11 100644
--- a/tests/files/README
+++ b/tests/files/README
@@ -213,6 +213,11 @@
xz -lvv in XZ Utils 5.0.3 and earlier. It was fixed in the commit
c0297445064951807803457dca1611b3c47e7f0f.
+ bad-1-index-huge-uncomp.xz has Index where Uncompressed Size is
+ UINT64_MAX / 3 + 1 bytes. With XZ Utils 5.8.3 and older, passing
+ this file thrice to xz --list produces incorrect totals due to
+ integer overflow.
+
bad-2-index-1.xz has wrong Unpadded Sizes in Index.
bad-2-index-2.xz has wrong Uncompressed Sizes in Index.
diff --git a/tests/files/bad-1-index-huge-uncomp.xz b/tests/files/bad-1-index-huge-uncomp.xz
new file mode 100644
index 00000000..fb9c1852
Binary files /dev/null and b/tests/files/bad-1-index-huge-uncomp.xz differ